Glossary: Data Structures and Algorithms
self
Also written: __init__
Inside a method, `self` is the object the method was called on, passed in by Python automatically. `__init__` is the special method that runs once to set up a new object.
Glossary: Data Structures and Algorithms
Also written: __init__
Inside a method, `self` is the object the method was called on, passed in by Python automatically. `__init__` is the special method that runs once to set up a new object.