I;m trying to generate a tuple list from a larger list. how do I do it in pythonic way?
c = ['A1','B1','C1','A2','B2','C2']
Output required is something like this:
c = [('A1','A2'),('B1','B2'),('C1','C2')]
I tried to iterate through the list and put a regex to match for mattern and then added that to a tuple but that doesn;t look convincing for me.. Any better way to handle this?