Source Code:
(back to article)
x = 5 if isinstance(x, int): print("x is an integer") else: print("x is not an integer")
Result:
Report an issue