Skip to content

Instantly share code, notes, and snippets.

@chelseaparlett
Created August 30, 2021 18:15
Show Gist options
  • Save chelseaparlett/bc7628a99cc7dc272bce39394fb2c1e6 to your computer and use it in GitHub Desktop.
Save chelseaparlett/bc7628a99cc7dc272bce39394fb2c1e6 to your computer and use it in GitHub Desktop.
Box Breathe with python
import time
def breath(prompt = "Hold------------"):
print(prompt)
time.sleep(1)
for i in range(2,5):
print(str(i))
time.sleep(1)
breaths = 0
while breaths <= 0:
breaths = int(input("How many breaths do you want to do? "))
for i in range(0,breaths):
breath("In--------------")
breath()
breath("Out-------------")
breath()
print("Well done! You're worthy of rest.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment