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

import random

def index_of(number, list):
    """
    Returns the index of the number in the list.

    Parameters
    ----------
    number: int
        The number to be searched for.
    list: list
        The list to be searched.

    Returns
    -------
    int
        The index of the number in the list.

    """
    for i in range(len(list)):
        if list[i] == number:
            return i

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

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

#Example Output
# 9

#Remember to inspect code for bugs.