Advertisement
KodingKid

Python Booleans - Is the door open or closed? - Basic Scripting #16

May 22nd, 2021
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. print("There is a door")
  2. bool door = false
  3. while (door == false):
  4.     print("The door is closed")
  5.     break
  6. if (door == true):
  7.     print("The door is open")
  8.     break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement