Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
それぞれ2つの整数を持つタプルのリストがあります:
a_list=[(20, 1), (16, 0), (21, 0), (20, 0), (24, 0), (25, 1)]
私が探しているのは、最小の 2 番目の項目と最大の最初の項目を持つタプルを見つけて返す方法です。上記のリストでは、タプルになり(24, 0)ます。
(24, 0)