Skip to content

Commit 85396a4

Browse files
authored
Merge pull request csubhasundar#167 from ProgrammerDG/patch-3
Create alarmClockPython
2 parents 66b43b3 + 655d956 commit 85396a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

alarmClockPython

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)