''' Purpose: Exercise module olio ''' import olio # uncomment below lines to test voting_age() # We will call functions from olio like this: # olio.function_name( arguments ) # x and y store what's returned by the function call! (18) x = olio.voting_age() y = olio.voting_age() # print( x ) # print( y ) # Commenting out multiple lines: # Ctrl / or Cmd / (Windows vs. Mac) print() # uncomment below lines to test has_blanks() # line1 = input( 'Enter text: ' ) # line2 = input( 'Enter text: ' ) # # # b1 and b2 get the return value of the function call! (True of False based on # # what the function evaluates for the argument) # b1 = olio.has_blanks( line1 ) # b2 = olio.has_blanks( line2 ) # # print( b1 ) # print( b2 ) # # print() # uncomment below lines to test great_seal() # We just call these functions but don't set them equal to variables! # They execute the statements in the function body. # Now, what does great_seal() return? None!!!!! # It executes the function body (printing E pluribus unum) but when we # set return1 to the function call, it gets the return value and the return value is None. # return 1 and return 2 are None. # return1 = olio.great_seal() # return2 = olio.great_seal() # olio.great_seal() # olio.great_seal() # print() # print(return1) # print(return2) # uncomment below lines to test a_ing() reply1 = input( 'Enter integer: ' ) reply2 = input( 'Enter integer: ' ) reply3 = input( 'Enter integer: ' ) nbr1 = int( reply1 ) nbr2 = int( reply2 ) nbr3 = int( reply3 ) olio.a_ing( nbr1 ) print() olio.a_ing( nbr2 ) print() olio.a_ing( nbr3 ) print()