QUIZ GAME USING PYTHON
Fri Jul 01 2022 16:10:04 GMT+0000 (Coordinated Universal Time)
Saved by
@ITSMERAFAY
#python
a = input("Enter your good name : ").upper()
print(f"Hallow {a}")
play = input("Do you want to play this game ? ").lower()
score = 0
if play != "yes":
quit()
else:
print(f"Ok then let's get started {a} :)\n")
Question1 = input("Q1 : Who is the father of THOR : \n")
if Question1 == "ODIN".lower():
print("Correct!")
print(f"Yes it's {Question1}")
score += 1
else:
print("Incorrect! ")
print(f"NO it's not {Question1}")
Question2 = input("Q2 : Who is the brother of THOR : ")
if Question2 == "loki".lower():
print("Correct!")
print(f"Yes it's {Question2}")
score += 1
else:
print("Incorrect! ")
print(f"NO it's not {Question2}")
Question3 = input("Q3 : Who is the sister of THOR : ")
if Question3 == "Hela".lower():
print("Correct!")
print(f"Yes it's {Question3}")
score += 1
else:
print("Incorrect! ")
print(f"NO it's not {Question3}")
Question4 = input("Q4: How many hammers do thor have now (write in numbers)? : ")
if Question4 == "2":
print("Correct!")
print(f"Yes it's {Question4}")
score += 1
else:
print("Incorrect! ")
print(f"NO it's not {Question4}")
Question5 = input("Q5: Did hela killed thor in ragnarok? : ")
if Question5 == "No".lower():
print("Correct!")
print(f"Yes it's {Question5}")
score += 1
else:
print("Incorrect! ")
print(f"NO it's not {Question5}")
print(f"Your total score is {score}")
print("Your score percentage is " + str((score/5) * 100) + "% ")
print("So you are not allowed to enter in the comic world!!!")
content_copyCOPY
Comments