import sys a_list = ["apple", "ice cream", "watermelon", "chips", "hotdogs", "hotpot"] while a_list: a_list.pop() print(a_list)