0
If prints out the 'true' even tough its false.
name = input("What's your name? ") print ("Welcome to the game, " + name + "!") Room = input("youre in a room. Which direction will you go? ") if Room == 'forward' or 'w': hall = input("youre in a hallway. Where will you go next? ") if hall == 'forward' or 'w': print("You cleared the game!") else: print("???") elif Room == 'left' or 'a': print(input("You cant go that way!")) else: print("???")
1 Odpowiedź
0
thank you!