Work on your own (i.e., not with other classmates).
Use only the Python expressions and statements we had described in class at the time of lab 3 (for example, do not use string subscripting).
Download the starter file.
Write all your code in the file hw3.py
.
Replace (YOUR NAME)
with your name in the
comment near the top of the file.
In the section of the file marked remaining LAB 3
exercises
, include all the lab exercises that you worked on
after lab time. (You and your lab partner should have already
submitted to me a version of your lab that you worked on during lab. The
homework portion of the lab represents your work on the remaining lab
exercises.)
Solve as many of the additional homework problems (spelled out
for you in hw3.py
) as you can.
Choose two of the additional problems (A-F) - indicate this as part of the comments you include at the top of your file - that you wish to focus my attention on.
Test your work as you go!
Before submitting, fill out the remainder of the ...
comments near the top of the file according to what is
requested.
Replace ... status ...
with a brief comment as to
how much of the assignment you completed. (For example, “I completed all
of the assigned problems and I am confident they work correctly.” or “I
struggled on many of the problems and have left 6, D and F blank. There
is an error in C so I commented it out.”)
Submit your work by uploading your hw3.py
file via
MySLC
(Submit only your hw3.py
file - and make sure it
is named hw2.py
. Do not submit an entire folder. Do
not submit lab3.py
here; do not submit
the graphics module.)
As with lab3, there is a runnable
solution module called hw3x.py
.
You can use it to see the result of executing the solution version of
any of the hw3
problems. To use it, place
hw3x.py
in the same folder as the other file(s) you are
working with, then in the IDLE shell, you can import hw3x
and access the solution versions in the IDLE shell as follows:
>>> import hw3x
>>> hw3x.unseveny(75)
True
>>> hw3x.string_category('5')
'digit character'
>>> hw3x.sum_powers_of_two(7, 32)
24
Remember, if you wish to make use of
simple_graphics
, you need to have the
simple_graphics.py
file in the same folder as where the
file you are writing your code in resides.