Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find index of elem list python

# Find index position of first occurrence of 'Ok' in the list 
indexPos = listOfElems.index('Ok')
 
print('First index of element "Ok" in the list : ', indexPos)
Source by thispointer.com #
 
PREVIOUS NEXT
Tagged: #find #index #elem #list #python
ADD COMMENT
Topic
Name
8+3 =