This part still happens even if the fruit isn't in the list. To handle that you'd have to add in a line about if take_away is not in fruit: ...