Execution Practice

This assignment is designed to give you practice running (executing) a Python program. Start by saving the following file to your classwork folder.

(You can save the file by right-clicking and choosing “Save Target As...” from the context menu.)

Then open up a terminal and navigate to where you saved the star_wave.py file.

Microsoft Windows [Version 10.0.19043.1110]
(c) Microsoft Corporation. All rights reserved.

C:\path\to\classwork\folder>python star_wave.py
*
**
*
**
***
...
C:\path\to\classwork\folder>

You should see a long-running program printing out waves of stars in the terminal. To forcibly stop long-running Python scripts, press ctrl + c.


©2021 Daniel Gallo

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.

Creative Commons License

Adapted for Python from Graham Mitchell’s Programming By Doing