Kasante95

while loop

Mar 20th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | Source Code | 0 0
  1. answer = input("Throw a water balloon? (y/n)")
  2. while answer == "y":
  3.     print("Splash!!!")
  4.     answer = input("Throw another water balloon? (y/n)")
  5. print("Goodbye!")
Advertisement
Add Comment
Please, Sign In to add comment