human
Write me a Python code to check if all elements in a list are equal.
assistant
Here is a Python code to check if all elements in a list are equal

import re

def list_check(list):
    """
    Check if all elements in a list are equal.

    :param list: input list
    :type list : list
    :return: bool
    """
    for i in list:
        if i!= list[0]:
            return False
    return True

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

# Calling the function
print((list_check(list)))

#Example Output
# False

#Remember to inspect code for bugs.