This is demoted to a practice lab practical. Give it a whirl.
Here is the shell file, practiceLP0.py. Download it. Before starting work, run it; it should produce no output and no error messages.
Directions Keep all of your work in this file.
vi
Tip If you want to work on a function in its own file,
say problem 1, select it in visual line mode then type :w one.py
Then,
open the file one.py
and write and test the function. When you are done,
function in visual mode and write it to a temporary
file, say tmp
. Then open LP1.py and navigate to the function.
Delete the function and read in your work by typing
:r tmp
in command mode.
Submission A canvas portal is provided for uploads.