Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 23:31, 11 June 2011
, 12 years ago→Python scripts
imported>Jesstess |
imported>Jesstess |
||
Line 373:
<li>Open <code>nobel.py</code> in your text editor (see [[Boston Python Workshop 3/Friday#Goal_.232:_prepare_a_text_editor|preparing your text editor]] for a refresher on starting the editor).</li>
<li>Read through the file in your text editor carefully and check your understanding of both the comments and the code.</li>
</ol>
Study the script until you can answer these questions:
<ol>
<li>How do you comment code in Python?</li>
<li>How do you print just a newline?</li>
<li>How do you print a multi-line string so that whitespace is preserved?</li>
</ol>
|