Hi,

 

I’m working through Python Programming for the Absolute Beginner.  One of the challenges at the end of chapter 4 is to get a message from the user and then print it out backwards. I have…

 

message = raw_input("Enter your message:")

count = len(message)

print count

 

which gives me the number of characters in the message.  I tried to use a for loop:

 

for i in range(len(message)-1,-1, -1):

    print i,

 

but I just get the numeric values of the string.  Can anyone help?

 

Also, does anyone know of a PDA that would run python? 

 

TIA

 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to