[python] sa

Viewer

  1. #Berat tarafından yapılmıştır.
  2. import time
  3. def countdown(t):
  4.     while t:
  5.         mins, secs = divmod(t,60)
  6.         timer = '{:02d}:{:02d}'.format(mins,secs)
  7.         print(timer,end='\r')
  8.         time.sleep(1)
  9.         t-=1
  10.     print("Sayaç bitti..")
  11. t=input('Lütfen kaç saniye olacağını belirtin: ')
  12. countdown(int(t))
  13.  
  14.  
  15. #Berat tarafından yapılmıştır.

Editor

You can edit this paste and save as new:


File Description
  • sa
  • Paste Code
  • 23 Apr-2024
  • 380 Bytes
You can Share it: