DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+3 =
Submit