I have the following list:
a = [[1,2],[3,4],[5,6]]
Now I want to access only the first elements of each sub-list:
a1 = [1,3,5]
How can I do it ?
I have the following list:
a = [[1,2],[3,4],[5,6]]
Now I want to access only the first elements of each sub-list:
a1 = [1,3,5]
How can I do it ?