Class 24 — Wednesday October 23

Module implementation and usage

Practice makes perfect — Is more than a platitude — Take it to your heart


Look both ways


Agenda


World series

Astros will win the World Series

Nationals will win the World Series


Downloads


To do


Module olio.py

Function voting_age()

x = olio.voting_age()

y = olio.voting_age()


Function has_blanks( s )

x = 'CS 1112'

y = 'the_aarvark_said_arf_arf'

b1 = olio.has_blanks( x )

b2 = olio.has_blanks( y )


Function great_seal()

olio.great_seal( )

print()

olio.great_seal( )

print()

produces as output

E Pluribus Unum

E Pluribus Unum


Function a_ing( n )

olio.a_ing( 5 )

print()

olio.a_ing( 1 )

print()

olio.a_ing( 3 )

produces as output

a

aa

aaa

aaaa

aaaaa

a

a

aa

aaa


Module uva.py


What's next


pitch perfect poster