Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to your first Python quiz!")
- print("...")
- yes_or_not = input("Are you ready to test what you've learned? >> ")
- if yes_or_not == "Yes" or yes_or_not == "Yeah" or yes_or_not == "Definitely":
- print("OK, then! Let's start the quiz")
- print("...")
- q1 = input("Is Python the easiest programming language to start learning how to code? >> ")
- if q1 == "Yes":
- print("Correct!")
- else:
- print("Sorry, buddy. Wrong answer!")
- q2 = input("Is identation relevant when coding? >> ")
- if q2 == "Yes":
- print("Correct!")
- else:
- print("Sorry, buddy. Wrong answer!")
- elif yes_or_not == "No" or yes_or_not == "Nope":
- print("Don't worry. You can take the quiz later.")
- else:
- print("I don't understand what you're saying, buddy.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement