Class 30 — November 2
Life is surprising
Picture a pillow — Python Imaging module — Pillow for pictures
Look both ways
Agenda
- Live and learn
- Optional parameters
- Sneak in functions are first class in Python
- Install Pillow on your machine
Downloads
- Gotcha program my_head_hurts.py
- Module alma.py
- Program mater.py
- Module translate.py
To do
- Complete homework 27
Python mechanism for optional parameters
- As part of the function definition can have default initialization for its parameters.
- Optional parameters must be at the end of the parameter list
- Consider module
alma.py
along with testermater.py
Problem at hand
- Module translate.py to support text translation.
- Some sample translation text phrases
links
est la baguette fraiche
dubailte dubailte kesusahan und guaio
umlilo adolebitque und ketel bombolla
umucu di una pantanoso neidr
dans der ketel bouyi und cuire
oog di tritons und kaki di rano
yun di fledermoyz und lingua di chien
viperae foarke und blyn cuc stik
moo fotur und ovlet tis
pre eng viehatys di voimakas guaio
mag un inferno salda bouyi und bombolla
© 2020 Jim Cohoon | Resources from previous semesters are available. |