Core: learn it Step 10 of 16 on the Python Developer roadmap

Attributes and methods

Attributes hold an object's data and methods are functions that belong to it. Good methods keep the rules about the data in one place, like refusing to let a wallet balance go below zero.

Learn it on JeliScript

More in Classes and objects

See it on the Python Developer roadmap