An example of python implementing a countdown

  • 2020-04-02 13:23:24
  • OfStack


import time
count = 0 
a = input('time:') 
b = a * 60 
while (count < b):
 ncount = b - count 
 print ncount 
 time.sleep(1)
 count += 1 
print 'done' 


Related articles: