human
Give me a Python code to locate indices based on value in a list.
assistant
Here is a Python code to locate indices based on value in a list

# Enter the list
list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((find_index(list1, 5)))

#Remember to inspect code for bugs.