Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate python

list_of_values = ['a', 'b', 'c']

for index, value in enumerate(list_of_values):
  print(f"Index: {index}. Value: {value}"
Source by treyhunner.com #
 
PREVIOUS NEXT
Tagged: #enumerate #python
ADD COMMENT
Topic
Name
4+5 =