python - Accessing a value in a tuple that is in a list -


[(1,2),(2,3),(4,5),(3,4),(6,7),(6,7),(3,8)] 

how return 2nd value each tuple inside list?

with list comprehension.

[x[1] x in l] 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -