get second item of tuple python code example
Example 1: get second element of tuple python
#get nth element of a tupple in python
n = 1 # Whatever the value of N is. . .
print(x[n]) #were x is the tupple, for n = 1 you get the second element
Example 2: python second element of every tuple in list
n = 2 # N. . .
[x[n] for x in elements]