Kasante95

if_else_elif condition

Feb 13th, 2023
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. ghosts = 3
  2. if ghosts > 1:
  3.     print("It’s so spoooooky!")
  4. elif ghosts > 0:
  5.     print("Get that ghost!")
  6. else:
  7.     print("Ghosts all gone!")
Advertisement
Add Comment
Please, Sign In to add comment