Skillshare intro to Python/Unit 1: Difference between revisions

no edit summary
imported>Jesstess
No edit summary
imported>Jesstess
No edit summary
Line 24:
* [[Skillshare intro to Python/Unit 1/OSX terminal navigation|OS X]]
* [[Skillshare intro to Python/Unit 1/Linux terminal navigation|Linux]]
 
== Goal #4: reading and running Python files ==
 
We'll be practicing two skills with this goal. The first is reading and understanding Python programs. The second is running these programs from the terminal.
 
For each of the following Python programs (folks often call these "scripts"), please do the following:
 
<ol>
<li>Download the script and save it to your Desktop.</li>
<li>Open the script in your text editor.</li>
<li>Read through the script. Don't worry about understanding every last detail. Instead focus on:
 
<ul>
<li>Overall, what does this script do?</li>
<li>What data structures are used? Where are the strings, integers, and floats?</li>
<li>What functions are used, and why?</li>
</ul>
</li>
<li>Once you have a good sense of what the script does, open a terminal, navigate to the directory where you saved the script, and run it. Does it do what you expected?</li>
<li>Think about 1 way that you could extend the script. How would you make that change in code?</li>
</ol>
Anonymous user