xxxxxxxxxx
# To return the index of the first occurence of element x in lst
ind = lst.index(x)
xxxxxxxxxx
# 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)
xxxxxxxxxx
# we can not index "array"
# So, "array" should be converted to "list"
# As, "list" has property of "indexing"