python print location index of list code example Example: get index of list python list.index(element)