Code AnalysisHard 180s
Class Variable Shadow
Read the code and determine the output.
Starter code
class A: x=1 A.x=2 a=A() a.x=3 print(A.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.