mysql has output a list of tuples of the form
a=[("1","2","3"),("4","5","6"),("7","8","9")]
I want a list of tuples of the form
c=[("2","3"),("5","6"),("8","9")]
i.e. the last two elements of each tuple, so i can put that into a my sql executemany command and get the next piece of data.
my intuition was that i could get the desired matrix with the command
c=[for b in a: b[1:]]
but python, doesn't like that. Why doesn't that work, and what's the most pythonic way of getting the desired list of tuples?