I created a zip object using the following line of code:
k=zip([1,2,3],['a','b','c'])
Converting this into a list gives the output:
[(1,'a'),(2,'b'),(3,'c')]
However, when I use this line of code
x,y=zip(*k)
it gives me this ValueError:
"ValueError: not enough values to unpack (expected 2, got 0)"
I've been trying to find out what the problem is but couldn't figure anything out.