Class 34 — April 8
Life is surprising
If you are first class — What does that mean to others — Or to the grand scheme
Look both ways
Agenda
- Live and learn
Downloads
Do you remember digit_box.py
-
Possible run
Type an integer: 9
—
1 2 3 4 5 6 7 8 9
2 4 6 8 0 2 4 6 8
3 6 9 2 5 8 1 4 7
4 8 2 6 0 4 8 2 6
5 0 5 0 5 0 5 0 5
6 2 8 4 0 6 2 8 4
7 4 1 8 5 2 9 6 3
8 6 4 2 0 8 6 4 2
9 8 7 6 5 4 3 2 1
-
Code
Python mechanism for optional parameters
- As part of the function definition can have default inititalization
- Optional parameters must be given at the end of the parameter list in
- Consider cheer.py
First-class programming language citizen
- Entity with all of the operational support generally available to other entitites
- Consider functions_are_first_class.py
- Consider my_head_hurts.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