Skip to content

Instantly share code, notes, and snippets.

@Shalabyelectronics
Last active August 16, 2022 00:47
Show Gist options
  • Save Shalabyelectronics/a9fa599a93644d79aedbfae6bac86f3a to your computer and use it in GitHub Desktop.
Save Shalabyelectronics/a9fa599a93644d79aedbfae6bac86f3a to your computer and use it in GitHub Desktop.
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