Python attributes: Instance variables, class variables, and methods

Python attributes: Instance variables, class variables, and methods

Python uses attributes where other languages use different terms (and data structures):

– Instance variable — attribute on an instance (self)
– Class variable — attribute on a class
– Method — callable (function) attribute on a class