45 points
Focus on the following sections of Chapter 2 in the Hands-on
Python Tutorial.
- Strings, Part III 2.1
- Appending to a List 2.2.1
- Graphics 2.4 (sections 2.4.3, 2.4.4, and 2.4.9 are optional)
- Files 2.5
Remember you can check for methods in Zelle's
and the tutorial's extra graphics documentation.
Here is the list of files you need make sure are included when
you
turn in your Chapter 2 work. If you saved this work under some
other name, please rename
as I specify below.
- acronym.py (Exercise 2.1.6.2) (5 points)
- graphics.py - Add this file to the .zip archive you turn in to make testing your scripts easier.
- changeScene.py
(Exercise 2.4.5.2) (5 points)
- backAndForth4.py (Exercise 2.4.8.1) (5 points)
- faces.py (Exercise 2.4.8.2) (5 points)
- move2Faces.py (Exercise 2.4.8.3) (6 points)
- ranges.py
(Exercise 2.4.12.1) (5 points)
- An Extra Credit Problem: texttriangle.py (Exercise 2.4.12.2) (3 points extra credit)
- fileUpper.py,
copyFileUpper.py (Exercise 2.5.2.1b,c) (4 points each) (You do not need
to
turn in printUpper.py from part a, though that is a good
initial program to
write.)
- madlib3.py, myMadlib.txt (Exercise 2.5.2.2) This
exercise uses
code from the sections we skipped, but you only need to use the
tellStory code, not modify it. You just need to change the
very
bottom of the code where tellStory is called, so you pass in the the
format string taken from the requested file. Then tellStory
finds
the cue strings without you needing to explicitly list them separately
as in the original version. (6 points with both files)
Submit a single archive (.zip file) that includes all
these files. Check that they all are included!
Same
instructions
as before for
log.txt: Every individual should separately
submit a personal
file log.txt. This should be a plain text file
with exactly this name.
(You can create it in Idle if you like.) Your homework grade
will not be recorded
without this file! Include in the file
- Roughly how long you worked for Chapter 2 beyond
class time.
- Briefly, how it went for you, for instance what was the
hardest part to get ...
- Who your partner was if you had one, or "No partner"
If you
changed partners, indicate which files were produced with which
partner, if possible.
- If
you had a partner, give an indication of how things went with your
partner. Was working together a good thing? Did you
work
together remotely online? How did it go?
If you worked with a consistent partner through the whole
chapter,
only one of you needs to submit the archive, but make sure both partner
has their own copy! Each student should separately submit an independently
written log.txt file.