Питон во время петли

CAN_loop = True
thenumber = 0
from time import sleep, time

while CAN_loop:
    #put your code in here. for example i do this. you can delete the code
    
    
    print(Number)
    Number = Number + 1
    sleep(1)
    if thenumber == 10:
        CAN_loop = False
        print("we are gonna stop counting")
dl.guy