I want to join two lists in such a way that the elements become lists
input:
a = [1,2,3,4,5,6,7]
b = [a,b,c,d,e,f,g]
output:
c = [[1,a],[2,b],[3,c],[4,d],[5,e],[6,f],[7,g]]
so far I tried to do this:
product = []
price = []
p = []
for g, h in zip(product, price):
p.append([])
for l in range(0, len(p)):
p[l].append(g)
p[l].append(h)
print(p)