listoftuple = [(0, 1, 2), (1, 2, 3)]
s1 = [b for (a, b, c) in listoftuple]
print(s1)
s2 = list(map(lambda row: row[1], listoftuple))
print(s1 == s2, sum(s1))
Post #2063
1.74K
Что выведет код?