Code AnalysisHard 45s
singledispatch
What is the output?
Starter code
from functools import singledispatch
@singledispatch
def f(arg): return 'default'
@f.register(int)
def _(arg): return 'int'
print(f('hello'), f(42))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.