Human: Write me a Python function to index a number in a list. Assistant: 
Here is a Python function to index a number in a list

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

# Calling the function
print((index(number, list)))

#Example Output
# 9

#Remember to inspect code for bugs.