__init__ method question

I heard all functions are objects. And class are objects too, if I am not mistaken. Then methods within a class must be objects.
Then I wonder, within init method, which is an object, are the variables like ‘self.------’ objects, too? Objects within an object?

You must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

From the Python Documentation, "__self__ is the class instance object."