cat = [1, 2, 3], [4, 5, 6], [7, 8, 9]print(list(zip(*cat)))print(list(zip(cat)))
Standard input is empty
[(1, 4, 7), (2, 5, 8), (3, 6, 9)] [([1, 2, 3],), ([4, 5, 6],), ([7, 8, 9],)]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!