Anonymous user
Python 2 hour intro: Difference between revisions
→Python scripts
imported>Jesstess No edit summary |
imported>Jesstess |
||
Line 327:
<ol>
<li>Download the file http://mit.edu/jesstess/www/BostonPythonWorkshop6/nobel.py by right-clicking on it and saying to save it as a ".py" file to your Desktop. The ".py" extension hints that this is a Python script.</li>
<li>Run the script by double-clicking on it. What happens?</li>
<code>nobel.py</code> introduces two new concepts: comments and multiline strings.</li>
<li>Open <code>nobel.py</code> in
<li>Read through the file in your text editor carefully and check your understanding of both the comments and the code.</li>
</ol>
Line 349 ⟶ 342:
</ol>
Let's get back to some interactive examples.
==Booleans==
|