I'm looking for a simple way to modify a 2D list as shown below. Starting with a list such as this:
1,2,3
4,5,6
7,8,9
I want to create a list that looks like this:
1,2
4,5
7,8
1,3
4,6
7,9
Which is just the first and second column with the first and third column appended to the bottom. I'm sure there's a simple way of doing this, but I'm just not familiar enough with the way Python lists are structured and it's driving me crazy.
Thanks.