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.
(New for this lab) Rename your file to have both your
names in it as: lab5_alpha_beta.py
(if your names were
Alpha and Beta).
Email me a copy of your work (attach your version of the
lab5
file - named as just indicated) 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 lab5_examples.py
in the
lab5
. (Re)read the functions defined in that file and
experiment with using them.
Included in the lab5
folder is a runnable solution
module called lab5x.py
. You can use it to see the result of
executing the solution version of any of the assigned exercises. After
running either lab5_examples.py
or lab5.py
as
a module in IDLE, you can import lab5x
and access the
solution versions in the IDLE shell as follows:
>>> import lab5x
>>> lab5x.yorn('Is this cool or what?')
If one of the exercises you are working on requires the solution to a previous exercise that you have not yet completed, you can use the solution version.
In particular, try running:
>>> lab5x.quizzer(lab5x.double)
and
>>> lab5x.repeat_quiz()
Use IDLE to open lab5.py
in the lab5
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.