Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 23:26, 11 June 2011
, 13 years ago→Python scripts
imported>Jesstess |
imported>Jesstess |
||
Line 360:
<li>Download the file http://mit.edu/jesstess/www/BostonPythonWorkshop2/nobel.py. The ".py" extension hints that this is a Python script.</li>
<li>Save the file in your Desktop directory.</li>
<li>Open a command prompt, and use the navigation commands (<code>dir</code> and <code>cd</code> on Windows, <code>ls</code>, <code>pwd</code>, and <code>cd</code> on OS X and Linux) to navigate to your home directory. See [[
<li>Once you are in your home directory, execute the contents of <code>nobel.py</code> by typing
Line 371:
<code>nobel.py</code> introduces two new concepts: comments and multiline strings.</li>
<li>Open <code>nobel.py</code> in your text editor (see [[
<li>Read through the file in your text editor carefully and check your understanding of both the comments and the code.</li>
</ol>
|