I’ve got a list like
[(1, 2), (1, 8), (2, 3), (2, 7), (2, 8), (2, 9), (3, 1), (3, 2), (3, 5), (3, 6), (3, 7), (3, 7), (3, 9)]
I want to make it looks like
[(‘1′,’ ‘, ‘2’, ‘8’), (‘2’, ‘ ‘, ‘3’, ‘7’, ‘8’, ‘9’), (‘3’, ” “, ‘2’, ‘5’, ‘6’, ‘7’, ‘7’, ‘9’)]
How can I code this loop? Really tried times, and nothing came up. Please help~~
1 Answer