def check_integer(initial_number_of_balls):
    """
    This function checks if the user's initial input is an integer or not.
    If not: return False
    If it is: return True
    :param initial_number_of_balls: this is the variable saving the user's input
    :return: True if the user puts in an integer
    False if the user did not put in an integer
    """
    try:
        change_into_integer = int(initial_number_of_balls)
    # The function try to convert any input (type is string) into integer
        return True
    #When the input is not an integer, the function will have a value error in converting the type from a string to an integer.
    #The function will then return False. Otherwise, the function returns True.
    except ValueError:
        return False
    #Return False when it has Value error in converting