Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to read tuples inside lists python

a_list = [(1, 2), (3, 4), (5, 6)]

selected_items = [item[1] for item in a_list]

print(selected_items)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #read #tuples #lists #python
ADD COMMENT
Topic
Name
8+4 =