Skip to content

Commit

Permalink
Merge pull request pybites#574 from bigarabuza/PCC52
Browse files Browse the repository at this point in the history
Pcc52
  • Loading branch information
bbelderbos authored Sep 22, 2019
2 parents 79bcd45 + 517d174 commit fa6b78d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 52/bigarabuza/pomodorotimer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from datetime import datetime
from datetime import timedelta

time_duration = int(input('Enter time duration:' ))
start_time = datetime.now()
end_time = start_time + timedelta(minutes=time_duration)

while ((end_time - datetime.now())) >= timedelta(seconds=0):
print(str(end_time - datetime.now()))

print('Alarm!')

0 comments on commit fa6b78d

Please sign in to comment.