''' DS2000 Spring 2020 Source code from class - Sentiment analysis V1 -- analyzing ONE review. Did they like or hate the movie? February 4, 2020 ''' from rotten_critics import * MOVIE = "Cats the Musical" # Compilation of reviews from the audience STARS = [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] # One review from one critic REVIEW = ["cinematic", "disaster", "of", "epic", "proportions"] def main(): while True: option = choose_menu(MOVIE) if option == AUDIENCE: rating = audience_rating(STARS) elif option == CRITIC: rating = critic_rating(REVIEW) else: break print("Rating is", rating, "\n") print("Thanks for using our site!") main()