[Tutor] Help Needed

Elisha Rosensweig benshafat at gmail.com
Wed Jun 17 06:35:24 CEST 2009

> Also is there a way to say reverse the string in a way so the reversed
> string would result to "this take" if you use my example? And is there a way
> to stop the loop without the use of break? Thanks for the help!

Sure. First take your string S and use S.split() to get a list of the
individual words in the string. Then you can use similar techniques to those
previously proposed for the first problem to reverse the order.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090617/857b2db4/attachment-0001.htm>

More information about the Tutor mailing list