Fill the blank
# guard: only numbers allowed
if not ____(v, (int, float)):
raise TypeError
Answer: isinstance
isinstance() checks a value against a type or tuple of types.
Play Problem Solving ▸
# guard: only numbers allowed
if not ____(v, (int, float)):
raise TypeError
Answer: isinstance