Python Object-Oriented Python Instant Objects Your first method

James Ball
James Ball
1,995 Points

How am I missing the 'self' argument in this code?

This code runs fine in the console but I get an error that I have forgot the 'self' argument. What am I missing?

first_class.py
class Student:
    name = "James"

    def praise(self):
        print('You\'re doing a great job, {}'.format(self.name))

me = Student()
me.praise()

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 51,000 Points

The instructions are: The method should return a positive message. You are printing instead.