pop
clear
index
Removes all items from the list.
list.clear()
Enter values below to update the example in real time.
nums
print
nums = [1, 2, 3] nums.clear() print(nums) # []