Advertisement
DrAungWinHtut

Quiz.py

Apr 19th, 2022
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.17 KB | None | 0 0
  1. print()
  2. print("Quiz App")
  3. print("---------")
  4.  
  5. marks = 0
  6.  
  7. ans = input("what is the longest river in the world : ")
  8. if (ans == "Nile" or ans == "nile"):
  9.     marks += 20
  10. else:
  11.     print("Wrong answer! The correct one is Nile")
  12.  
  13. print()
  14. print("Your marks is " + str(marks))
  15.  
  16. print()
  17. ans = input("what is the highest mountain in the world : ")
  18. if (ans == "Everest" or ans == "everest"):
  19.     marks += 20
  20. else:
  21.     print("Wrong answer! The correct one is Everest")
  22.  
  23. print()
  24. print("Your marks is " + str(marks))
  25.  
  26. print()
  27. ans = input("what is the highest mountain in the world : ")
  28. if (ans == "Everest" or ans == "everest"):
  29.     marks += 20
  30. else:
  31.     print("Wrong answer! The correct one is Everest")
  32.  
  33. print()
  34. print("Your marks is " + str(marks))
  35.  
  36. print()
  37. ans = input("what is the highest mountain in the world : ")
  38. if (ans == "Everest" or ans == "everest"):
  39.     marks += 20
  40. else:
  41.     print("Wrong answer! The correct one is Everest")
  42.  
  43. print()
  44. print("Your marks is " + str(marks))
  45.  
  46. # calculation marks
  47. print()
  48. if(marks > 70):
  49.     print("Excellent Marks")
  50. elif(marks < 70 and marks > 50):
  51.     print("Good marks")
  52. else:
  53.     print("You need to try again!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement