List=[[a1, a2, a3], [b1, b2, b3], [c1, c2 and c3]]
Is there a more concise code can traverse to get: a3, b3, c3
Similar for the item in the list
CodePudding user response:
[print (x [1]) for x in LST]CodePudding user response:
For a, b, c in the list:print(c)
CodePudding user response:
New_list=[c for a, b, c in the list]