def tab():
.......
return[a,b,c,d]
[a,b,c,d] = tab()
How can I append a list to the defined function. I want to attach Z to the a, b, c and d.
This is the function that I've defined but not sure how to append to the returned list.
reg = ['Z']
df_dict = {}
for item in reg:
df_dict[item].append(a)