Advertisement
KodingKid

How to use if, else, elif, and or in Python - Basic Scripting #38

Jul 8th, 2021
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. aa = input()
  2. ab = input()
  3. ac = input()
  4. print("Please type 1 or 2")
  5. print("Please type 3 or 4")
  6. print("Please type 5 or 6")
  7. if aa == "1" or "2":
  8.     print("Well done!")
  9. elif ab == "3" or "4":
  10.     print("Well done! (again)")
  11. elif ac == "5" or "6":
  12.     print("Well done! (again and again)")
  13. else:
  14.     print("bruh you got that wrong lol")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement