'Progressive time in python
I am trying to do a progressive timer to show in my terminal after run my script, but its showing only in seconds.
I would to know how do i covert it to minutes and hours.
import time
import sys
for progressive in range(0, 9999, 1):
sys.stdout.write("\r")
sys.stdout.write("{:2d} seconds ...".format(progressive))
sys.stdout.flush()
time.sleep(1)
The output is 1 seconds, 2 seconds... I want when reach 60 segunds be 00:01:00
I search over all internet and nothing help me
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
