Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python while loop

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")
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #loop
ADD COMMENT
Topic
Name
3+7 =