0
を抽出するために、私が書かれたdoctestを持っている:デフ(トリプル)をextract_second秒
を: 「」 "トリプルのリストを考えると、各トリプル
If an item is not a triple, return None for that element
>>> extract_second([('a',3,'x'),('b',4,'y')])
[3, 4]
>>> extract_second([('c',5,'z'),('d',6)])
[5, None]
>>> extract_second([('a',3,'x'),('b',4,'y')]) == [3, 4]
True
"""
for x in triples:
return x[1]
の第二の要素を持つリストを返します