Python Object-Oriented Python Instant Objects __init__

Bakang Elliot Simane
Bakang Elliot Simane
4,277 Points

help me

help me with this 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()
        return self.reassurance()
    def __init__(self, name,**kwargs):
        self.name = name
    for values, keys in kwargs.items():
        setattr(self, values, keys)

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 57,142 Points

Looks like the last for loop is not indented far enough to be inside the init method