cipher encoding

Cathy James nambo4jb at gmail.com
Wed Jan 12 19:35:46 EST 2011


Dear all,

I hope someone out there can help me.

 The output string of my code is close to what i need, but i need it
1)printed on one line and
2) reversed

#mycode:
s= input("Enter message: ")
key=1
for letter in s:
    num=(chr(ord(letter)+1))
    print(num)
#or is there a better way to rewrite it with elementary level Python, which
happens 2b my current ranking.
#Your insight is always appreciated:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110112/4a252ce9/attachment.html>


More information about the Python-list mailing list