All challenges
Code AnalysisHard 45s

__slots__ inheritance

What is the output?
Starter code
class A: __slots__ = ('a',)
class B(A): pass
b = B()
b.new_attr = 5
print(b.new_attr)

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle