Joining with newline works perfectly. Thanks everyone!
_______________________ Samuel Huckins Homepage - http://samuelhuckins.com Tech blog - http://dancingpenguinsoflight.com/ Photos - http://www.flickr.com/photos/samuelhuckins/ AIM - samushack | Gtalk - samushack | Skype - shuckins ________________________________ From: Alan Gauld <[email protected]> To: [email protected] Sent: Wednesday, January 7, 2009 3:58:18 AM Subject: Re: [Tutor] Getting multi-line input from user "Andre Engels" <[email protected]> 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. _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
