Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- score = 0
- print("Welcome to the Maths Quiz")
- print("Can you answer three questions and score maximum points?")
- print("Question 1: What is the product of 2x2x2?")
- answer = int(input("your answer :>> "))
- if answer == 8:
- print("correct")
- score = score + 1
- print("Your score is ", score)
- else:
- print("incorrect the answer is 8!")
- print("your score is ", score)
- print("Question 2: What is the 7 x 7?")
- answer = int(input("your ansscore = 0
- print("Welcome to the Maths Quiz")
- print("Can you answer three questions and score maximum points?")
- print("Question 1: What is the product of 2x2x2?")
- answer = int(input("your answer :>> "))
- if answer == 8:
- print("correct")
- score = score + 1
- print("Your score is ", score)
- else:
- print("incorrect the answer is 8!")
- print("your score is ", score)
- print("Question 2: What is the 7 x 7?")
- answer = int(input("your answer :>> "))
- if answer == 49:
- print("correct")
- score = score + 1
- print("Your score is ", score)
- else:
- print("incorrect the answer is 49!")
- print("your score is ", score)
- print("Question 3: What is 144 divided by 12?")
- answer = int(input("your answer :>> "))
- if answer == 12:
- print("correct")
- score = score + 1
- print("Your score is ", score)
- else:
- print("incorrect the answer is 24!")
- print("your score is ", score)
- wer :>> "))
- if answer == 49:
- print("correct")
- score = score + 1
- print("Your score is ", score)
- else:
- print("incorrect the answer is 49!")
- print("your score is ", score)
- print("Question 3: What is 144 divided by 12?")
- answer = int(input("your answer :>> "))
- if answer == 12:
- print("correct")
- score = score + 1
- print("Your score is ", score)
- else:
- print("incorrect the answer is 24!")
- print("your score is ", score)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement