Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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}')
 
PREVIOUS NEXT
Tagged: #enumerate #python
ADD COMMENT
Topic
Name
3+4 =