"Spacebar265" <spa...@gmail.com> wrote:

>Thanks. How would I do separate lines into words without scanning one
>character at a time?

Type the following at the interactive prompt and see what happens:

s = "This is a string composed of a few words and a newline\n"
help(s.split)
help(s.rstrip)
help(s.strip)
dir(s)

- Hendrik


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to