Advertisement
GreatRaymondo

mathsquiz

Feb 21st, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. score = 0
  2.  
  3. print("Welcome to the Maths Quiz")
  4. print("Can you answer three questions and score maximum points?")
  5. print("Question 1: What is the product of 2x2x2?")
  6. answer = int(input("your answer :>> "))
  7. if answer == 8:
  8. print("correct")
  9. score = score + 1
  10. print("Your score is ", score)
  11. else:
  12. print("incorrect the answer is 8!")
  13. print("your score is ", score)
  14.  
  15.  
  16. print("Question 2: What is the 7 x 7?")
  17. answer = int(input("your ansscore = 0
  18.  
  19. print("Welcome to the Maths Quiz")
  20. print("Can you answer three questions and score maximum points?")
  21. print("Question 1: What is the product of 2x2x2?")
  22. answer = int(input("your answer :>> "))
  23. if answer == 8:
  24. print("correct")
  25. score = score + 1
  26. print("Your score is ", score)
  27. else:
  28. print("incorrect the answer is 8!")
  29. print("your score is ", score)
  30.  
  31.  
  32. print("Question 2: What is the 7 x 7?")
  33. answer = int(input("your answer :>> "))
  34. if answer == 49:
  35. print("correct")
  36. score = score + 1
  37. print("Your score is ", score)
  38. else:
  39. print("incorrect the answer is 49!")
  40. print("your score is ", score)
  41.  
  42. print("Question 3: What is 144 divided by 12?")
  43. answer = int(input("your answer :>> "))
  44. if answer == 12:
  45. print("correct")
  46. score = score + 1
  47. print("Your score is ", score)
  48. else:
  49. print("incorrect the answer is 24!")
  50. print("your score is ", score)
  51.  
  52.  
  53.  
  54. wer :>> "))
  55. if answer == 49:
  56. print("correct")
  57. score = score + 1
  58. print("Your score is ", score)
  59. else:
  60. print("incorrect the answer is 49!")
  61. print("your score is ", score)
  62.  
  63. print("Question 3: What is 144 divided by 12?")
  64. answer = int(input("your answer :>> "))
  65. if answer == 12:
  66. print("correct")
  67. score = score + 1
  68. print("Your score is ", score)
  69. else:
  70. print("incorrect the answer is 24!")
  71. print("your score is ", score)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement