Source Code:
(back to article)
def is_integer(x): return isinstance(x, int) print(is_integer(5)) # True print(is_integer(5.5)) # False print(is_integer("hello")) # False
Result:
Report an issue