python return index of list of name code example Example: get index of list python list.index(element)