So, I'm learning how to program in Python, and so far I think I'm doing okay. While trying a SWAT type of game, I made this.
This apparently doesn't work, even when Room DOES equal one of those, it still thinks it's false and prints the last line. Anyone know what's wrong?
Code:
def chooseEntryway():
room = ''
print('Which entryway will you take? The window, the back door, or the front door?')
room = input()
room = str(room)
if room != 'window' or 'the back door' or 'the front door' or 'the window' or 'front door' or 'back door':
print('That is not an available entryway. You need to enter from the window, the front door, or the back door.')
while room == '':
chooseEntryway()
Comment