Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

first_class.py
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()
        else:
            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
MOD
Jason Anders
Treehouse Moderator 145,860 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: