Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Content added Content deleted
imported>Jesstess |
imported>Jesstess |
||
Line 373: | 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>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> |
<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> |
</ol> |
||