[Tutor] Help Needed
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...
More information about the Tutor