Class 32 — Friday November 7

Chrestomatics and patterning

The end is coming — Sooner than we want it to — Enjoy the moment

Election results — Will be coming anytime now — Which program is correct


Look both ways


Agenda


To do


Downloads


Module luna.py

elapsed time = distance / speed

DISTANCE_IN_MILES_TO_MOON = 238900.0

h( 119.45 ) = 2000.0

h( 597.25 ) = 400.0



Module calc.py

19.5 + 5.25 = 24.75

12.5 - 6.5 = 6.0

12.5 * 4.5 = 56.25

10.0 / 2.25 = 4.444444444444445

1.0 @ 5.0 = None



Module sigma.py

d1 = [ [ 0 ], [ 1, 2 ], [ 1, 2, 3 ], [ 0 ] ]

d2 = [ [ 1, 0, 1, 2, 2 ], [ 3, 0, 1, 1, 1, 0 ], [ 2 ], [ 0, 0, 1 ] ]

d3 = [ [ 3, 0, 3], [ 3, 0, 3, 0, 1], [ 1, 0, 2 ] ]

d4 = [ ]

s( d1 ) = 9

s( d2 ) = 15

s( d3 ) = 16

s( d4 ) = 0



crossword snapshot

 


  © 2020 Jim Cohoon   Resources from previous semesters are available.