def insert(tpl, ind, var):
    """
    (TUPLE FUNCTION)
    Exactly like tpl[ind]=var for lists.
    """
    tpl = list(tpl)
    if type(ind) == str:
        ind = tpl.index(ind)
    tpl.insert(ind, var)
    return tuple(tpl)
