Last active
August 16, 2022 00:47
-
-
Save Shalabyelectronics/a9fa599a93644d79aedbfae6bac86f3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
def alarm_me(minutes: int, message:str) -> str: | |
alarm_time = time.time() + minutes * 60 | |
while True: | |
if time.time() > alarm_time: | |
break | |
print(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment