I am using a list p = [[1,2,3],[4,5,6]]
If I do :
>>>d=zip(p)
>>>list(d)
[([1, 2, 3],), ([4, 5, 6],)]
Though, what I actually want is obtained using this:
>>>d=zip(*p)
>>>list(d)
[(1, 4), (2, 5), (3, 6)]
I have found out that adding a '*' before the list name gives my required output, but I can't make out the difference in their operation. Can you please explain the difference?