if isinstance(var, int): print("It is integer")
if is instance(var, (int, long)): print("It is integer")
No comments:
Post a Comment