Each second, it prints a new line. Is there a way to have it print ontop of the previous line?
while True:
    sec += 1
    if sec / 60 == sec_int:
        sec = 0
        mins += 1
        if mins / 60 == min_int:
            mins = 0
            hours += 1
            if hours / 24 == hour_int:
                hours = 0
                days += 1
    print(f"{days}d : {hours}h : {mins}m : {sec}s")
    time.sleep(1)
 
    