Software Engineering
Understanding "self" in Python
The functions you wrote around objects can move inside the class — and when they do, their first parameter gets the name `self`. This course builds an accurate mental model of `self` from that single idea, then uses it to write methods that read and change an object's own data, and finally introduces `__init__` so objects arrive ready to use.
Python
4 lessons
16 practices
Less than 2 hours
General Programming and Algorithms

Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal





