summaryrefslogtreecommitdiff
path: root/Chap15ProjCountdown.py
diff options
context:
space:
mode:
authormlot <petri-rush-curvy@duck.com>2025-06-06 13:40:57 -0400
committermlot <petri-rush-curvy@duck.com>2025-06-06 13:40:57 -0400
commit75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch)
tree84be794a2481e356a7784557a6f9fb6fbf29cfdd /Chap15ProjCountdown.py
initial commit for archivingHEADmain
Diffstat (limited to 'Chap15ProjCountdown.py')
-rw-r--r--Chap15ProjCountdown.py17
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)
+