[Tutor] how to print a message backwards
Ali Sina
seena_blk at yahoo.com
Wed Sep 23 16:22:08 CEST 2009
#Message backward printer
message=input('Enter your message: ')
for i in range(len(message),0,-1):
print(message)
This is the code which I have written. All it does is count the number of letters starting from backwards. The proper code should so something like this:
Enter your message: Hi. My name is Ali Sina
Your message in backwards: aniS ilA si eman yM .iH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090923/e8cae04b/attachment.htm>
More information about the Tutor
mailing list