def add_to_list(list_name, list_to_add, content, begin_index):
    """
    Add a new element to a list.
    :param list_name: The name of the list.
    :param list_to_add: The list to add the element to.
    :param content: The input message.
    :param begin_index: The beginning index of the entry in the list.
    :return: The return statement.
    """
    input_list = content.split()

    if len(input_list) < (begin_index + 1):
        return f"Hmm... I think you forgot to enter what you want to add. Please follow the format 'dogg add {list_name} list [...]'"

    entry_to_append = ""
    for word in range(begin_index, len(input_list)):
        entry_to_append += input_list[word] + " "

    list_to_add.append(entry_to_append)

    return f"New entry appended to the {list_name} list: " + entry_to_append