We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66b43b3 + 655d956 commit 85396a4Copy full SHA for 85396a4
alarmClockPython
@@ -0,0 +1,8 @@
1
+import time
2
+
3
+alarm_time = input("Enter the time for the alarm in 24-hour format (e.g., 07:30): ")
4
+while True:
5
+ current_time = time.strftime("%H:%M")
6
+ if current_time == alarm_time:
7
+ print("Alarm is going off!")
8
+ break
0 commit comments