Pythonリストremove
insert

removeリスト

pop

最初に一致する要素を削除します。

構文

list.remove(item)

使用例

下記の値を入力するとサンプルに即時反映されます。

fruits
remove
print
fruits = ["apple", "banana", "apple"]
fruits.remove("apple")
print(fruits)  # ['banana', 'apple']