作成日:2023-03-26 リストの要素の存在確認 inを使用します。 items = [5, 10, 3, -2, 9] print(3 in items) # True print(4 in items) # False