Human: What is a good Python function to return the index of a number in a list. Assistant: 
Here is a Python function to return the index of a number in a list

import math

def find_index(number, list):
    """
    >>> find_index(1, [1, 2, 3])
    0
    >>> find_index(1, [1, 2, 3, 4])
    2
    >>> find_index(1, [1, 2, 3, 4, 5])
    3
    """
    for i, element in enumerate(list):
        if element == number:
            return i
    return -1

# Enter the number
number = 1

# Enter the list
list = [1, 2, 3, 4, 5]

# Calling the function
index = find_index(number, list)

# Printing the index
print(index)

#Example Output
# 0

#Remember to inspect code for bugs.