i have following List:
j = [
[(1, 100), (2, 80), (3, 40)],
[(2, 80), (1, 30), (4, 50), (3, 60)],
[(1, 40), (2, 70), (4, 30)]
]
How can i print every first element like this:
[1, 2 ,3]
[2, 1, 4, 3]
[1, 2, 4]
I tried with
for i in j:
print(i[0])
Thanks!