[Tutor] Python Challange - ord chr incrementing alphabet

Paul D. Kraus paul.kraus at gmail.com
Tue Jun 20 14:30:40 CEST 2006


I just started doing the python challenges and was doing the one where the
hint is 3 letters each shifted two places to the right.
No big deal just ord / chr and some tests to handle looping past z.

I got my answer. Then reading the solutions i see that they suggest that the
best way would be to use string.maketrans()
I just can't figure this out. What does this do and how would it help with
this problem?

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060620/c3ca0d35/attachment.html 


More information about the Tutor mailing list