+ 2
Countdown watch
i want to make a countdown watch for multiple methods or tasks for 10seconds. which show the time in decreasing order.. so how to build logic.. any one have any idea please enlighten me... in java for timer
2 Respuestas
+ 1
import time
import os
max=int(input("Enter WORKOUT time:"))
rest=int(input("Enter rest time:"))
w=int(input("Enter Reps :"))
max+=1
rest+=1
while(w>0):
count=0
while count < max:
time.sleep(1)
count+=1
os.system('clear')
a=max-count
print('\n'*5+'\t\t '+str(a))
count2=0
while count2 < rest:
time.sleep(1)
count2+=1
os.system('clear')
b=rest-count2
print('\n'*5+'\t\t '+str(b))
#this one I've made for a workout #plan
#Python
0
Thanks dude