Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def is_int(x):
  2.     if int(x) == x:
  3.         return True
  4.     else:
  5.         return False
  6. print(is_int(7.4))
  7. print(is_int(1))
  8. print(is_int(-540))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement