Dec-15-2017, 08:34 PM
Hello:
I have some code, but I want to do the reverse:
I search around, it seems python has only zip function, but no unzip function.
Any idea how to code to unzip the above zipped list?
Thanks,
I have some code, but I want to do the reverse:
list1 = [1,2,3,4] list2 = [2,3,4,5] list3 = [3,4,5,6] list4 = [4,5,6,7] zip4List = zip(list1,list2,list3,list4)The fact is: I already have a zipped list which was generated by 4 lists zipped together, but I want to get each of the list from the zipped one, in my above example, I want to get the list1, list2, list3 and list4.
I search around, it seems python has only zip function, but no unzip function.
Any idea how to code to unzip the above zipped list?
Thanks,