Let's say I have a list:
foodlist = ['Fruit', 'Vegetable', 'Fish', 'Pasta', 'Rice_', 'Water', 'Meat_', 'Chocolate']
How would I create a new list that contains members of foodlist that DO NOT end in _ ? (i.e., the new list would have all members of foodlist except for 'Rice_' and 'Meat_')
newList = ['Fruit', 'Vegetable', 'Fish', 'Pasta', 'Water', 'Chocolate']
newList = 
for food in foodlist:
if food not ?
It's probably really simple, but I am still novicish (a nice new word!) at Python,