Skip to content

Instantly share code, notes, and snippets.

@Ikhiloya
Created October 25, 2018 22:28
Show Gist options
  • Save Ikhiloya/0b99111cc885910f9506c6b9d0e406ef to your computer and use it in GitHub Desktop.
Save Ikhiloya/0b99111cc885910f9506c6b9d0e406ef to your computer and use it in GitHub Desktop.
Function to check if a number is of type 'int'
def is_int(x):
if( (abs(x) - (abs(int(x)))) > 0 ):
return False
else:
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment