Answers for "what is the function of enumerate in python"

5

enumerate python

#Enumerate in python
l1 = ['alu','noodles','vada-pav','bhindi']
for index, item in enumerate(l1):
    if index %2 == 0:
        print(f'jarvin get {item}')
Posted by: Guest on September-03-2020

Code answers related to "what is the function of enumerate in python"

Python Answers by Framework

Browse Popular Code Answers by Language