<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Joining with newline works perfectly. <br><br>Thanks everyone!<br><div> </div>_______________________<br>Samuel Huckins<br><br><div>Homepage - http://samuelhuckins.com<br>Tech blog - http://dancingpenguinsoflight.com/<br>Photos - http://www.flickr.com/photos/samuelhuckins/<br>AIM - samushack | Gtalk - samushack | Skype - shuckins<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Alan Gauld <alan.gauld@btinternet.com><br><b><span style="font-weight: bold;">To:</span></b> tutor@python.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, January 7, 2009 3:58:18
AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Tutor] Getting multi-line input from user<br></font><br>
<br>"Andre Engels" <<a ymailto="mailto:andreengels@gmail.com" href="mailto:andreengels@gmail.com">andreengels@gmail.com</a>> wrote <br>> The newline character is written \n in Python, so if you replace<br>> <br>> ' '.join(user_input)<br>> <br>> by<br>> <br>> '\n'.join(user_input)<br><br>Yep, that's better than my suggestion of adding the \n at append time. :-)<br><br>Alan G.<br><br>_______________________________________________<br>Tutor maillist - <a ymailto="mailto:Tutor@python.org" href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br></div></div></div></div></body></html>