Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loop

#while loop
i = 1 # initialized i with value of 1
while(i <= 5): #there's the condition -> while(condition): 
  print(i) # body of loop
  i+=1 # increament
Source by openclassrooms.com #
 
PREVIOUS NEXT
Tagged: #python #loop
ADD COMMENT
Topic
Name
4+1 =