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.

Python Object-Oriented Python Instant Objects Method Interactivity

Alright, I need you make a new method named feedback. It should take an argument named grade. Methods take arguments jus

I don't understand what I'm doing wrong here. I took the suggestion from the other answered Treehouse question about the same challenge but that code is not working for me... All I see is Bummer: Try again!

Please help

class Student:
    name = "Your Name"
    def praise(self):
        return "You inspire me, {}".format(self.name)
    def reassurance(self):
        return "Chin up, {}. You'll get it next time!".format(self.name)
    def feedback(self, grade):
        if grade>50:
            return self.praise()
            return self.reassurance()
Nicholas Blocher
Nicholas Blocher
5,848 Points

Hey, D Elis I just checked your code and it passed. Try closing your browser and open up the challenge again.

Hope that helps.

1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 145,624 Points

D Elis

Nicholas Blocher is correct. Your code is fine.

Sometimes there may be something cached that confuses the Code Checker, so just copy your code, click "restart challenge" and paste your code back in. Occasionally, there is a bigger glitch that may require you to log out of Team Treehouse, close your browser / clear your cache, and the go back in and paste your code. This doesn't happen often, however.

With Python Challenges, it could also be that there was an errant space or some sort of whitespace that 'upset' the checker. :smirk:

Whichever, your code is good! Nice work. :) :dizzy: