[Tutor] Beginner question(s)

Bill Tatum btatum at cddn.com
Sun Jun 18 12:58:38 CEST 2006


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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060618/6898d895/attachment.html 


More information about the Tutor mailing list