<human>:  Python code to index the last occurence of an element in a list in a Python code.
<bot>:

# Enter the element
element = 5

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

#Remember to inspect code for bugs.