diff options
author | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
---|---|---|
committer | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
commit | 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch) | |
tree | 84be794a2481e356a7784557a6f9fb6fbf29cfdd /Chap15ProjCountdown.py |
Diffstat (limited to 'Chap15ProjCountdown.py')
-rw-r--r-- | Chap15ProjCountdown.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Chap15ProjCountdown.py b/Chap15ProjCountdown.py new file mode 100644 index 0000000..dabcf86 --- /dev/null +++ b/Chap15ProjCountdown.py @@ -0,0 +1,17 @@ +#! python3 + +# Chapter 15 Project Simple Countdown Program + +import time +import subprocess + + +timeLeft = 60 + +while timeLeft > 0: + print(timeLeft) + time.sleep(1) + timeLeft = timeLeft -1 + +subprocess.Popen(['start', 'c:\\GbV\\Hit.mp3'], shell=True) + |