Class Variable vs Instance Variable

Compare the class and instance variables in this lesson.

In this section, we’ll demystify the difference between class and instance variables.

Difference between class variable and instance variable

There are two types of data attributes on Python objects:

  • Class variable
  • Instance variable

Get hands-on with 1200+ tech skills courses.