Jak czytać krotki w listach Python
a_list = [(1, 2), (3, 4), (5, 6)]
selected_items = [item[1] for item in a_list]
print(selected_items)
KaptainKermit1
a_list = [(1, 2), (3, 4), (5, 6)]
selected_items = [item[1] for item in a_list]
print(selected_items)