On 5/27/05, Michael <[EMAIL PROTECTED]> wrote: > 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??
Here's one that works on multiple character strings, with carrying. Rather silly, really. <http://www.brunningonline.net/simon/blog/archives/001787.html> -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list