Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Won't change to uppercase
It's returning the sound but it's still all in lowercase. Why???
from animal import Animal class Sheep(Animal): pass def __init__(self, **kwargs): self.sound = kwargs.get('sheep', 'Grrrrr!!!') def __str__(self): self.Sheep.noise = self.sound.upper()
Max Hirsh16,761 Points
So for this challenge, it looks like it is asking you to redefine certain attributes for Sheep that it might inherit from Animal. To do that you don't have to run an init(self) or str(self). Also remember that the "pass" argument is for classes/functions that are blank, so you should delete it after you add anything. Also, keep in mind that methods usually "return" variables after they perform their operations. Let me know if that helps!