<human>:  Can you show me a Python function to index an element in a list.
<bot>:

# Enter the element
element = 5

# Calling the function
index = index_of_element(list, element)

# Printing the index
print(index)

#Remember to inspect code for bugs.