Skip to content

Instantly share code, notes, and snippets.

View shereifsrf's full-sized avatar

Mohammed Shereif shereifsrf

View GitHub Profile
import time
import winsound
import threading
import msvcrt # Only works on Windows
def user_prompt() -> tuple[int, int]:
focus_dur = int(input("Enter the focus duration (minutes): "))
break_dur = int(input("Enter the break duration (minutes): "))
return focus_dur, break_dur