how to get an index from list python code example Example: get index of list python list.index(element)