class Food: def __init__(self, name, calories): self.name = name self.calories = calories
Add the attribute ‘hungry’ to the object initialisation, then
def feed(self, food): if food.calories>100: self.hungry = False