Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loop increment by 2

n = 2 #set variable to complete the output
for i in range(2, 20 +n, n): #range("begin" , "end" , "increment by")
  print(i, end = " ") #print horizontally
 
PREVIOUS NEXT
Tagged: #python #loop #increment
ADD COMMENT
Topic
Name
3+5 =