For example I have a function
def function_1():
x = 1
y = 2
z = 3
return x, y, z
which I want to call and store it a dictionary in another function
def function_2():
dict = {}
for i in range(10):
dict[i] = function_1(), i
what I imagined the code to give me was a dictionary with keys like this:
{0: (1, 2, 3, 0), 1: (1, 2, 3, 1), 2: (1, 2, 3, 2)}.
But what I get instead is
{0: ((1, 2, 3), 0), 1: ((1, 2, 3), 1), 2: ((1, 2, 3), 2)}.
Now what I would like to get is the aforementioned format for every key. How can I go about and do that?