l = [1, 2, 3]
answer = []
for each in l:
    sub_answer = []
for every in l:
    sub_answer.append(each - every)
answer.append(sub_answer)
sub_answer = []
print(answer)
Building a Matrix With a Generator