indices of list python code example Example 1: python index of item in list list.index(element) Example 2: get index of item in list list.index(element, start, end)