DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
print index and value on each iteration of the for loop in Python
index = 1 for name in names: print(index, name) index += 1
Source by softhunt.net #
PREVIOUS
NEXT
Tagged:
#print
#index
#iteration
#loop
#Python
ADD COMMENT
Topic
COMMENT
Name
9+9 =
Submit