<christopher.h...@allisontransmission.com> wrote

mystring="Mary had a little lamb."
mystring.split()
['Mary', 'had', 'a', 'little', 'lamb.']


And then you can use slicing to reverse the created list the same way you
did with the full string.

Or use the reverse() method of the list...

Alan G

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

Reply via email to