''' DS2000 Spring 2020 Sample code from class: Update the average ACT score with a new student we're factoring in. This file is the driver, using the ACT module ''' # structure is: FROM module IMPORT funcname # the module act would be a file named act.py # Python looks in the current directory, or in the Python library from act import update_act def main(): # Prompt the user for the input we need for the act function curr_act = float(input('Enter the current average ACT score\n')) num_students = int(input('How many students are in the average?\n')) new_act = float(input('Enter the ONE new ACT score.\n')) # Call the ACT function and report the results updated = update_act(curr_act, num_students, new_act) print('The new average ACT score is...', updated) main()