Exercise: Find index of element

Define a function called get_index that takes a list and some value as input, and returns the index of that value in the list.
# define function here...
def get_index
print(get_index([1,2,3],3)) # expected: 2 print(get_index([0,9,19],9)) # expected: 1 print(get_index(['x','y','z'],'z')) # expected: 2
Python
Setting up Python environment...
Output