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("???")

5th Mar 2019, 10:26 AM
Sai
Sai - avatar
1 Odpowiedź
0
thank you!
5th Mar 2019, 10:31 AM
Sai
Sai - avatar