Feb-20-2018, 11:01 AM
just to mention that you don't need both x and count variables.
import time def mycounter(lapse): for counter in range(lapse): time.sleep(1) print(counter) mycounter(10)this will count 10 seconds (0-9)