Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loop through array step size 2

myList = [1,2,3,4,5,6]
i = 0
while i < len(myList):
  print(myList[i])
  i+=2
  
 
PREVIOUS NEXT
Tagged: #python #loop #array #step #size
ADD COMMENT
Topic
Name
2+4 =