Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate function in python for loop

num = ["Python", "C", "C++", "Java"]
for i, value in enumerate(num):
    print(i,"-", value)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #enumerate #function #python #loop
ADD COMMENT
Topic
Name
6+7 =