how to get an element of a list based on location in python code example Example: get index of item in list list.index(element, start, end)