from typing import Union


def spec_append(lst: Union[tuple, list], obj: object):
    """
    @brief Append a value to a list.
    If you use append, the copy() will not do successfully, two lists in two dicts will be same.
    The solution is reset the list in the copied dict, then the first dict and the copied dict will not same.
    So there we need to write a function by ourselves.
    @param lst The list value.
    @param obj The object to append.
    """
    new_lst = []
    for lstobj in lst:
        new_lst.append(lstobj)
    new_lst.append(obj)
    return new_lst