最初は空のリスト todo_list = [] を作ってください。 append を使って、「買い物」「掃除」「洗濯」の3つを順番に追加してください。 len を使って、今のリストの長さを表示してください。 「掃除(1番目の要素)」が終わったことにして、pop で削除してください。 最後に、残ったリストの中身を ...
Defining a list in Python is easy—just use the bracket syntax to indicate items in a list, like this: list_of_ints = [1, 2, 3] Items in a list do not have to all be the same type; they can be any ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する