Tweeted By @jakevdp
One of my favorite little Python tidbits is that zip() is its own inverse...
— Jake VanderPlas (@jakevdp) July 3, 2018
>>> data = [(1, 2, 3), ('a', 'b', 'c')]
>>> zipped = zip(*data)
>>> unzipped = zip(*zipped)
>>> list(unzipped)
[(1, 2, 3), ('a', 'b', 'c')]