Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

steps in for loop python

list_1 = [9, 5, 7, 2, 5, 3, 8, 14, 6, 11]

for i in range(0, len(list_1), 2) :
    print(list_1[i])
    
2 is the steps
output:
9
7
5
8
6
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #steps #loop #python
ADD COMMENT
Topic
Name
5+6 =