In [ ]:
import time    #time 

mainNumber= int(input("minutes left?"))  # main number is starting

regularNumber =  mainNumber * 60  #regular number is actual

while regularNumber > 0:   # starts the countdown, creating  a loop
    
    for increment in range(60):  #adds the number amount, increment means to add 
        
        print(regularNumber)  #prints the number that is being counted down
        
        minutesRemaining = regularNumber //60 # number of minutes
        
        secondsRemaining = regularNumber % 60 #number of seconds  
        
        print("there is {} minutes and {} seconds left".format(minutesRemaining, secondsRemaining))
        
        regularNumber -=1  #subtracts the number of seconds while counting down, decrement means to subtract
        
        time.sleep(1)  # puts the number to sleep every 1 second
        
        clear_output()  # clears the number every time it ticks
        
        print("Time has ended, {} minutes have passed".format(regularNumber)) # shows how many minutes completed over time
Time has ended, 1846 minutes have passed
1846
there is 30 minutes and 46 seconds left
In [ ]: