l = ['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot'] while len(l): l.pop(-1) print(l)