Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythonpropertySingle-choice MCQ

Accessing a property attribute directly on the class object (e.g. `MyClass.x`, not on an instance) returns what?

class C: @property def x(self): return 1 print(type(C.x)) # <class 'property'> print(type(C().x)) # <class 'int'>