wins = 0 looses = 0 while True: import random from random import randint removed = 0 win = randint(1,3) print(" __________\n| __ __ |\n| | || | |\n| | || | |\n| |__||__| |\n| __ __()|\n| | || | |\n| | || | |\n| | || | |\n| | || | |\n| |__||__| |\n|__________| ") print("") user = input("Choose a door! ") user = int(user) if user == 1: if win == 1: removed = randint(2,3) if win == 2: removed = 3 if win == 3: removed = 2 if user == 2: if win == 1: removed = 3 if win == 2: removed = 3 if win == 3: removed = 1 if user == 3: if win == 1: removed = 2 if win == 2: removed = 1 if win == 3: removed = randint(1,2) print("Door ",removed," is not the Win. Do you want to switch.") yorn = input("Type y/n ") yorn = str(yorn) if yorn == "y": if win == user: print("You Loose") looses = looses + 1 else: print("You Win") wins = wins + 1 if yorn == "n": if win == user: print("You Win") wins = wins + 1 else: print("You Loose") looses = looses + 1 print("") print("") print("Your Wins:",wins," Your Looses",looses) print("") print("")