Very basic question but I'm new to Python and working on a small text-adventure game to help me better understand while loops along with if/else/elif. It worked well until I introduced while loops to the code. In the beginning the user is supposed to pick a door to walk into, right or left, if the user types something else it's supposed to back to the top and ask them to select their door. And it's doing that correctly but if you type in right or left like you're supposed to it still takes you back to ask you to select your door.
door1 = 'right'
door2 = 'left'
print("Please type the name you'd like to use")
myName = input()
print("Hello " + myName)
print("Would you like to go through the door on the left or the door on the right?")
while True:
print("Please type left or right to indicate the door you choose")
door = input()
if door != door1 or door2:
continue