Hello, I'm trying to obtain the n-th elements from a list of tuples. I have something like
elements = [(1,1,1),(2,3,7),(3,5,10)]
and I want to extract only the second elements of each tuple into an array:
seconds = [1, 3, 5]
I know that it could be done with a for
but I wanted to know if there's another way since I have thousands of tuples.
any ideas? Thank you =)