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 localhost #
 
PREVIOUS NEXT
Tagged: #python #loop
ADD COMMENT
Topic
Name
2+7 =