From 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef Mon Sep 17 00:00:00 2001 From: mlot Date: Fri, 6 Jun 2025 13:40:57 -0400 Subject: initial commit for archiving --- Chap15ProjCountdown.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Chap15ProjCountdown.py (limited to 'Chap15ProjCountdown.py') 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) + -- cgit