repl.it
@Juice99/

Timer

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import time
import os
import replit

tinput = str(input("input time in format hrs:mins:secs i.e. 00:00:00 "))

split = tinput.split(":")
hrs = int(split[0]) * 3600
mins = int(split[1]) * 60
secs = int(split[2])

count = 0

timer = int((hrs) + (mins) + (secs))

for numbers in range(1,timer + 1):
  os.system('')
  time.sleep(1)
  count += 1
  replit.clear()
  print(count)

print('''
 _____ _____ _   _ _____  _____  _   _ 
|  ___|_   _| \ | |_   _|/  ___|| | | | |
| |_    | | |  \| | | |  \ `--.|| |_| |
|  _|   | | | . ` | | |  `--. ||  _  |
| |    _| |_| |\  |_| |_/\__/ || | | |
\_|    \___/\_| \_/\___/\____/ \_| |_/                                     
''')
?