Created
August 30, 2021 18:15
-
-
Save chelseaparlett/bc7628a99cc7dc272bce39394fb2c1e6 to your computer and use it in GitHub Desktop.
Box Breathe with python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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