Anonymous user
Python files: Difference between revisions
no edit summary
imported>Jesstess No edit summary |
imported>Jesstess No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1:
[[File:Treasure_map.png|100px]]▼
(Estimated completion time: 15 - 30 minutes)
== Goal #1: practice reading and running Python files ==
▲[[File:Treasure_map.png|100px]]
Until now we've been using the interactive Python interpreter. This is great for learning and experimenting, but you can't easily save or edit your work. For bigger projects, we'll write our Python code in a file. Let's get some practice with this!
Line 32:
== Goal #2: more practice
For each of the following Python programs (folks often call these "scripts"), please do the following:
Line 54:
<b>Here are you scripts to read and run</b>. Have fun with them!
* [http://web.mit.edu/jesstess/www/SkillsharePython/Unit1/tip_calculator.py tip_calculator.py]
* [http://web.mit.edu/jesstess/www/SkillsharePython/Unit1/pizza_calculator.py pizza_calculator.py]
|