def check_it(probe):
if probe is str:
return ("a string")
elif probe is int and probe > 100:
return ("large int")
else:
return ("small int")
print(check_it("hi"))
Run Code Online (Sandbox Code Playgroud) python ×1