только начал программировать для GCSE, это мой метод. Я не понимаю, почему мой код не работает... чем помочь? он ничего не будет делать, когда я его запускаю, а затем, когда я запускаю его и набираю текст, он застревает с DEF и «выбором»
время импорта защита комнаты1(): print("ты просыпаешься в комнате")
print("there are 3 doors")
print("pick a door (1, 2, or 3)")
choice = input()
if choice=="1":
room2()
elif choice =="2":
room3()
elif choice == "3":
room4()
else:
print("invalid response")
room1()
задание комнаты2():
print("there is no floor..")
print("you fell to your death..")
print("....you died....")
room1()
задание комнаты3():
print("A hungry tiger was waiting....")
print("He feasted upon you... ")
print ("....you died....")
room1()
задание комнаты4():
print("a long dark tunnel is in front of you...")
print("go forward or go back?... ")
choice2 = input()
if choice2=="forward":
tunel1()
elif choice2==("back"):
print("a tiger appeared from door 3 and has eaten you alive")
print("....you died....")
else:
print("invalid response")
def Tunel1():
print("you entered the dark tunnel as it gets smaller and smaller")
print("you crawl through the tight space and end up in a wall of a house")
print("as you slide through the wall you spot an opening")
print("go through the opening?")
выбор3 = ввод()
if selection3=="yes":
opening1()
elif selection3==("нет"):
print("a women came from behind you")
time.sleep(2)
print("you got stuck in the opening she slashed you open with a machete")
print("....you died....")
еще:
print("invalid response")
открытие1():
print("you went through the opening into a old 50's living room ")
time.sleep(5)
print("an old women appears from behind you with a machete")
print("you run into the kitchen")
time.sleep(3)
print("you find a knife")
()