IdentationError? what's wrong here?
Question:
if choice1 == "left":
choice2 = input(‘You’ve come to a lake. There is an island in the middle of the lake. Type "wait" to wait foraboat. Type "swim" to swim across.n’).lower()
if choice2 == "wait":
choice3 == input("You arrived at the island unharmed. There is a house with 3 doors. One red, one yellow, and one blue. Which colour do you choose?n").lower()
if choice3 == "red":
print("Game Over.")
elif choice3 == "yellow":
print("You found the treasure! You Win!")
elif choice3 == "blue":
print("You enter a room full of beasts. Game Over!")
‘if choice1 == "left":
choice2 = input(‘You’ve come to a lake. There is an island in the middle of the lake. Type "wait" to wait foraboat. Type "swim" to swim across.n’).lower()
if choice2 == "wait":
choice3 == input("You arrived at the island unharmed. There is a house with 3 doors. One red, one yellow, and one blue. Which colour do you choose?n").lower()’
if choice3 == "red":
print("Game Over.")
elif choice3 == "yellow":
print("You found the treasure! You Win!")
elif choice3 == "blue":
print("You enter a room full of beasts. Game Over!")
Answers:
choice2 = input(...
has a different number of spaces in front of it than the rest of the body of the if choice1 == "left"
statement.
if choice1 == "left":
choice2 = input(‘You’ve come to a lake. There is an island in the middle of the lake. Type "wait" to wait foraboat. Type "swim" to swim across.n’).lower()
if choice2 == "wait":
choice3 == input("You arrived at the island unharmed. There is a house with 3 doors. One red, one yellow, and one blue. Which colour do you choose?n").lower()
if choice3 == "red":
print("Game Over.")
elif choice3 == "yellow":
print("You found the treasure! You Win!")
elif choice3 == "blue":
print("You enter a room full of beasts. Game Over!")
‘if choice1 == "left":
choice2 = input(‘You’ve come to a lake. There is an island in the middle of the lake. Type "wait" to wait foraboat. Type "swim" to swim across.n’).lower()
if choice2 == "wait":
choice3 == input("You arrived at the island unharmed. There is a house with 3 doors. One red, one yellow, and one blue. Which colour do you choose?n").lower()’
if choice3 == "red":
print("Game Over.")
elif choice3 == "yellow":
print("You found the treasure! You Win!")
elif choice3 == "blue":
print("You enter a room full of beasts. Game Over!")
choice2 = input(...
has a different number of spaces in front of it than the rest of the body of the if choice1 == "left"
statement.