<human>:  how to get the first and last index of element in list.
<bot>:

# Enter the element
element = 3

# Calling the function
print((get_first_last_index(list, element)))

#Example Output
# (2, 2)

#Remember to inspect code for bugs.