''' DS2000 Spring 2020 Source code from class - iterating over a list This file is the driver, and represents wht user interface after I've picked a movie (in this case, "Cats: The Musical"). We have a list of ratings already, for this specific movie, and we call a function to get their average. January 31, 2020 ''' from rotten_average import * MOVIE = "Cats the Musical" def main(): ratings = [5, 4, 5, 5, 4, 3, 2, 3, 3, 1, 3, 1, 1, 1, 4, 2, 2, 3, 4, 5, 4, 5, 5, 4, 5, 5, 5, 4, 5, 3, 5, 5, 4, 3, 4, 5, 5, 5, 5, 4, 2, 2, 4, 5, 5, 4, 5, 3, 3, 3, 3, 3, 4, 3, 3, 1] while True: option = choose_menu(MOVIE) if option == AUDIENCE: rating = audience_rating(ratings) elif option == CRITIC: rating = critic_rating() else: break print("Rating is", rating, "\n") print("Thanks for using our site!") main()