Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate count

l = ["a", "a", "b", "c", "d", "e", "f"]
for count, value in enumerate(l, start=2):

#start refers to what number the counting of the elements should begin at. start=2 would mean 
the count numbers are 2, 3, 4, 5, 6, 7, 8, 9
 
PREVIOUS NEXT
Tagged: #enumerate #count
ADD COMMENT
Topic
Name
7+9 =