Class 30 — Wednesday April 14
Life is surprising
Picture a pillow — Python Imaging module — Pillow for pictures
Look both ways
Agenda
- Live and learn
- Sneak in functions are first class in Python
- Install Pillow on your machine
Downloads
- Module translate.py
- Module cookie.py
To do
- Complete homework 25
What is first class
- Consider module
cookie.py
def black() :
print( "Black" )
def white() :
print( "White" )
def run( f ) :
f()
if ( __name__ == "__main__" ) :
run( black )
run( print )
run( white )
- Program run
Black
White
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
1112 artistry
🦆 © 2022 Jim Cohoon | Resources from previous semesters are available. |