Incrementing letters

Michael slick_mick_00 at hotmail.com
Fri May 27 07:31:07 EDT 2005


Hi,
I've got a string s, and i want to shift all the letters up by one, eg a->b,
b->c ........ z->a
In c++ i can do this quite simply with

if(C == 'z') C='a';
else C++;

but i can't work out how to do this this in python??

Regards

Michael





More information about the Python-list mailing list