[Tutor] ideas?

Alex Kleider akleider at sonic.net
Mon Nov 18 22:21:03 CET 2013


On 2013-11-17 19:27, Byron Ruffin wrote:
> Need a little help with finding a process for this:
> 
> when a string of text is input, for example: abc def.
> I want to have each letter shift to the right one place in the
> alphabet. Thus..
>  abc def would be output as bcd efg.
> 
> Any ideas on how to do this?

"translate"?
http://docs.python.org/2/library/stdtypes.html#str.translate

> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list