All challenges
Code AnalysisIntermediate 45s

classmethod trace

What is the output?
Starter code
class A:
    x = 10
    @classmethod
    def get_x(cls): return cls.x
class B(A):
    x = 20
print(B.get_x())

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