<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Nov 12, 2009, at 6:03 PM, Tennessee Leeuwenburg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Just another option...</div><div><br></div>print "Python is" + ', '.join([index + ', ' + each for each in python])<br></blockquote><div><br></div><div>Our job here is that of pitchman, huckster, pimp even. &nbsp;We have very little time to capture somebody's interest. &nbsp;What we are talking about is a tease. &nbsp;Quick, obvious, to the point. &nbsp;If our audience has to stop and think to understand what they're reading, we've already lost.</div><div><br></div><div>In other words, KISS.</div><div><br></div><div><br></div><br><blockquote type="cite"><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 4:20 AM, Aahz <span dir="ltr">&lt;<a href="mailto:aahz@pythoncraft.com">aahz@pythoncraft.com</a>&gt;</span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, Nov 12, 2009, Ray Allen wrote:<br> &gt;<br> &gt; # Create &nbsp;list<br> &gt; python = ["Easy to read",<br> &gt; "Fast to code",<br> &gt; "Quick to learn",<br> &gt; "Modular and object oriented"]<br> <br> </div>AFAIK, almost everyone indents multi-line expressions. &nbsp;There are several<br> ways to do it, this is my preferred version:<br> <div class="im"><br> python = [<br> &nbsp; &nbsp;"Easy to read",<br> &nbsp; &nbsp;"Fast to code",<br> &nbsp; &nbsp;"Quick to learn",<br> </div> &nbsp; &nbsp;"Modular and object oriented",<br> &nbsp; &nbsp;]<br> <br> The reason I prefer this is because it makes it easy to edit the list,<br> specifically including the trailing comma on the last element. &nbsp;(E.g.<br> it's much easier to delete the first list element than when you put it<br> next to the opening bracket -- just delete the line.) &nbsp;It's also easy to<br> read because the beginning and end of the list are highly visible. &nbsp;I<br> prefer to indent only one level rather than matching up the beginning and<br> ending brackets because that gives more line length to the list contents.<br> <font color="#888888">--<br> Aahz (<a href="mailto:aahz@pythoncraft.com">aahz@pythoncraft.com</a>) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;*&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.pythoncraft.com/" target="_blank">http://www.pythoncraft.com/</a><br> <br> [on old computer technologies and programmers] &nbsp;"Fancy tail fins on a<br> brand new '59 Cadillac didn't mean throwing out a whole generation of<br> mechanics who started with model As." &nbsp;--Andrew Dalke<br> </font><div><div></div><div class="h5">_______________________________________________<br> Advocacy mailing list<br> <a href="mailto:Advocacy@python.org">Advocacy@python.org</a><br> <a href="http://mail.python.org/mailman/listinfo/advocacy" target="_blank">http://mail.python.org/mailman/listinfo/advocacy</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------------<br>Tennessee Leeuwenburg<br><a href="http://myownhat.blogspot.com/">http://myownhat.blogspot.com/</a><br>"Don't believe everything you think"<br> _______________________________________________<br>Advocacy mailing list<br><a href="mailto:Advocacy@python.org">Advocacy@python.org</a><br>http://mail.python.org/mailman/listinfo/advocacy<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>----------------</div><div>Roy Smith</div><div><a href="mailto:roy@panix.com">roy@panix.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></body></html>