Python Object-Oriented Python Instant Objects Method Interactivity

Ammar Jalabi
.a{fill-rule:evenodd;}techdegree seal-36
Ammar Jalabi
Python Development Techdegree Graduate 10,492 Points

My code works on my ide and it's not working here!

Is there something wrong in my code ?
class Student:
    name = "Name"

    def praise(self):
        return "You inspire me, {}".format(

    def reassurance(self):
        return "Chin up, {}. You'll get it next time!".format(

    def feedback(self,grade):
        if grade > 50:
            result = self.praise(Student)
            return result
        elif grade <= 50:
            result = self.reassurance(Student)
            return result,51)

2 Answers

Josh Keenan
Josh Keenan
19,311 Points

As it is a challenge, you don't need to do anything other than write the method, so you need to delete the final line of your code.

You shouldn't be passing in anything to the methods when calling them, you just need to call self.praise_student().