pop
clear
index
リストのすべての要素を削除します。
list.clear()
下記の値を入力するとサンプルに即時反映されます。
nums
print
nums = [1, 2, 3] nums.clear() print(nums) # []