我怎样才能有一个多项选择题,每个答案都有不同的答案,答案的默认答案是不可理解的?
我正在尝试制作一款游戏,用你的想象力来完成游戏。
我还需要以某种方式重复,直到给出正确的答案。
以下是代码:
answer = input("start?")
while answer.lower() != "start":
answer = input("type start")
else:
print("starting")
answer = input("you find yourself in a car")
while answer != "["look", "get out"]:
print("I don't understand..")
answer = input("Try again")
else:
if answer == "look":
print ("looking")
elif answer == "get out":
print("got out of car")
print("finished")