Try print s[::-1]
Nick On Wednesday, January 12, 2011, Cathy James <nambo...@gmail.com> wrote: > 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:) > -- http://mail.python.org/mailman/listinfo/python-list