Python Object-Oriented Python Inheritance Inheritance Quiz

Andrea Brandsness
Andrea Brandsness
2,675 Points

Calling a method from an inherited class

class Orange(Fruit): has_pulp = True

def squeeze(self):
    return has_pulp

Question: Orange().squeeze() will return True. Answer: False

Just looking for an explanation as to why the above code would return false when Orange().squeeze() is called. Thanks