if user_input == "3":
print "You have selected difficult"
answers = (["South Africa"])
difficulty = "Difficult"
quiz = quiz3
x = 1
else:
print "Error - Choose 1, 2 or 3...\n"
def run_quiz(quiz):
n = 0
global blank
print "Welcome to my Geography quiz!"
答案 0 :(得分:1)
else
需要与if
位于同一标签上。然后是您要激活的代码,与if
或else
if user_input == "3":
print "You have selected difficult"
answers = (["South Africa"])
difficulty = "Difficult"
quiz = quiz3
x = 1
else:
print "Error - Choose 1, 2 or 3...\n"