Skip to content

aimenng/clcock1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

import time

minutes = int(input("Enter the number of minutes to focus: "))
seconds = minutes * 60

while seconds:
  mins, secs = divmod(seconds, 60)
  timer = '{:02d}:{:02d}'.format(mins,secs)
  print(timer, end="\r")
  time.sleep(1)
  seconds -= 1

print("Time's up!")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published