Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loop index and value

l = ["val1", "val2","val3"]
for i, value in enumerate(l):
  print(f'Index= {i}, value= {value}')
Source by treyhunner.com #
 
PREVIOUS NEXT
Tagged: #python #loop #index
ADD COMMENT
Topic
Name
8+8 =