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