Use del to delete the last item in shopping if the list is longer than 3 items.

Make sure to type del shopping[-1].