def generate_str_of_list_elements_with_indices(list_name, list_size):
    """
    Parameters
    ----------
    list_name: str, name of the list
    list_size: int, number of list elements

    Returns
    -------
    str of list elements with angular bracket indexation separated with commas

    Example
    -------
    list_name = "l"
    list_size = 3
    return = "l[0], l[1], l[2]"
    """

    result_str = ""
    for i in range(0, list_size):
        result_str += list_name + "[" + str(i) + "], "
    return result_str[: -2]