Question · Python course · Module 3: Object-Oriented Programming

Class vs Instance Attributes

A class attribute is shared by:

Answer options

  • All instances of the class
  • Only one instance
  • Only methods
  • Only __init__

You can check the correct answer by solving this task in the CodeWorlds game.