Python Object-Oriented Python Instant Objects Method Interactivity

Dean Shalem
Dean Shalem
2,185 Points

what is wrong here!

I am pretty certain I'm right. Compiler error?

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()

1 Answer

Pedro Cabral
Pedro Cabral
Front End Web Development Techdegree Student 31,398 Points

After you define your feedback function, your code needs to be indented one level further.