Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_int(x):
- if int(x) - x == 0:
- return True
- else:
- return False
- print(is_int(7.4))
- print(is_int(1))
- print(is_int(-540))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement