Hello I have a multiline string such as: s='''This is the first line This is the second line This is the third longer line''' Note that s has no control character such as \n. The lines are defined as in "natural" writing. How can I extract from s, several strings, each of which is a line from the original string ? s1='This is the first line' s2='This is the second line' s3='This is the third longer line' Suppose this can be done using some kind of loop, How can I know that I extracted the last line in the string ? Thanks Eli
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
