Review the pre-lab exercises.
Work on this lab with your partner (or on your own if you have not been assigned one).
Unless otherwise indicated, use only the Python operations and commands we have described thus far in class.
Show your work for a given problem to the instructor or one of the lab assistants before moving on to the next problem, but do not get too bogged down on any one problem.
In the common case, you will not complete the exercises during our scheduled lab. It is then up to you to complete the lab on your own time (as part of the corresponding programming assignment).
Email me a copy of your work (attach the lab3.py
)
file by replying to the email that officially announces the lab. If
working with a lab partner send me just one copy for the pair, but CC
your partner.
Download and unzip the starter archive.
Use IDLE to open lab3_examples.py
in the
lab3
. (Re)read the functions defined in that file and
experiment with using them.
Use IDLE to open lab3.py
in the lab3
folder.
Remove the starter comment line in that file.
Replace <YOUR NAME(s) GO HERE>
with your
name(s).
Save as you go.
Run the module in IDLE, test your functions in the IDLE shell.
New feature for this lab: Included in the
lab3
folder is a runnable solution module called
lab3x.py
. You can use it to see the result of executing the
solution version of any of the assigned exercises. After running either
lab3_examples.py
or lab3.py
as a module in
IDLE, you can import lab3x
and access the solution versions
in the IDLE shell as follows:
>>> import lab3x
>>> lab3x.random_string(17)
'deicagegihcehaada'