I have the keys as key1= [(0,0,0), (0,0,1),(1,0,0), (0,1,0)]
for x1,x2,x3 in key1:
summat= #some expression that has new value for each keys
tempDict ={(x1,x2,x3): summat}
print(tempDict)
It only prints the last value(0,1,0) and the summat of last value but I want to store all the values of summat for all the value of keys