''' Purpose: Use a user defined module ''' import uva uva.wahoo() result = uva.wahoo() print( result ) #PRINTING AND RETURNING ARE DIFFERENT!!!!!!!!! # PRINT IS FOR THE USER # RETURN IS FOR THE PROGRAM #print(uva.wahoo()) # This is what happens when you print the function call # it calls the wahoo function that prints wahoo-wa # then it prints the return value of the function which is None # it is a shortened version of the above code #What if uva.py was somewhere else? # Python won't know where to look! # Youc do fancy stuff but we will just do the default # Can you define variables in a library? # Yeah math.pi but Python does not do this very well # Learn Object oriented programming next semester CS2110! uva.wahoos(5) # Invokes the function wahoos from uva and hands # it the integer 5 for the first parameter of wahoos #YOU WILL NEVER WRITE CODE WITH INPUT INSIDE THE FUNCTION DEF y = uva.year_founded() print( y ) reply = input( 'Credits so far: ') n = int( reply ) credits_to_go = uva.clas_credits_to_go(n) print( credits_to_go )