def fun(d, k, v): d[k]=v dc = {} print(fun(dc,'1', 'v'))