I'm trying to create a game in python, a game of multiple choice called "Who wants to be a millionaire?" and the problem is I want the program to stop executing the second question once the user failed to answer the first one.
print("What is the tallest being in existence?")
input(("If you want to see the choices just press enter. " + name))
print("Is it A, Dinosaur?")
print("B, The one and only, Giraffe")
print("C,The soul of the ocean Whale")
print("or D, None")
print("So what do you believe is the answer ? " + name + " ")
answer_1 = input()
if answer_1 == Q1_answer:
print("Correct! You Have Earned 100,000$ ")
score = +100000
if answer_1 != Q1_answer:
print("Im sorry, You have lost the game.")
print("Which famous inventor was born in 1856?")
print("A Einstein")
print("B, Tesla")
print("C, Napoleon")
print("D, Newton")
answer_2 = input()
if answer_2 == Q2_answer.lower():
print("Correct! It is Tesla Indeed, Your reached 200,000$ ")
score = +100000
else:
print("Sorry, wrong answer. You have lost and earned 0$. ")