After creating some loop variables with exec, I dont know how to put them in a list, see below
for i in range(2):
exec("x%i=i"%i) #Here I created the variables x0 and x1
y.append(??????) #I dont know how to put the above variables inside this list in the same loop
print(y)