Python · Decorators
What does this print? ```python import functools @functools.singledispatch def mult(x): return x*2 @mult.register(str) def _(x): return str(int(x)*2) print(mult(5), mult("5")) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
