beginner - object has no attribute - Python Forum
python-forum.io › thread-9486Reputation: 562. #2. Apr-11-2018, 07:04 PM. the problem is that lines 38-42 need to be indented one level to be part of class Girrafes with definition starting from line 23. Also note that this class Girrafes effectively overwrite the class Girrafes defined on lines 17-20, i.e. your Girrafes does not have method eat_leaves_from_tress ()