Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. answer = 'Y','N'
  2. answer = input("Are you ready to start the subject quiz? ")
  3. if answer == "Y":
  4.     print("Let's start!")
  5. elif answer == "N":
  6.     print("Please close the quiz!")
  7. question1 = 'Y','N'
  8. question1 = input("Do you like Computer Science? ")
  9. if question1 == "Y":
  10.     print("Excellent answer, next question!")
  11. elif question1 == "N":
  12.     print("Oh Dear!")
  13. question2 = 'Y','N'
  14. question2 = input("Do you like Science? ")
  15. if question2 == "Y":
  16.     print("Excellent answer, next question!")
  17. elif question2 == "N":
  18.     print("Oh Dear!")
  19. question3 = 'Y','N'
  20. question3 = input("Do you like English? ")
  21. if question3 == "Y":
  22.     print("Excellent answer, next question!")
  23. elif question3 == "N":
  24.     print("Oh Dear!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement