''' DS2000 Spring 2020 Driver for GoT - prompt the user UNTIL they're watching a season finale, at which point they can go to bed. Translation from English into Python: Prompt UNTIL you're watching the finale ====> WHILE you're not watching the season finale, prompt you. V1 -- there is some repeated code in here. We can do better. You know nothing Jon Snow ''' from got import is_finale def main(): season = int(input("Which season are you watching?\n")) ep = int(input("Which episode are you watching?\n")) while not is_finale(season, ep): print("It's not the finale there's more left!!") season = int(input("Which season are you watching?\n")) ep = int(input("Which episode are you watching?\n")) if is_finale(season, ep): print("The season is over go to bed!") main()