Try reading up on sequences and slicing. They offer a very elegant solution
to your (homework?) problem.

http://docs.python.org/tutorial/introduction.html#strings
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to