[Tutor] Getting multi-line input from user

Alan Gauld alan.gauld at btinternet.com
Wed Jan 7 09:58:18 CET 2009

"Andre Engels" <andreengels at gmail.com> wrote 

> The newline character is written \n in Python, so if you replace
> ' '.join(user_input)
> by
> '\n'.join(user_input)

Yep, that's better than my suggestion of adding 
the \n at append time. :-)

Alan G.

More information about the Tutor mailing list