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