Skip to content

Instantly share code, notes, and snippets.

@elmoiv
Created December 7, 2019 11:38
Show Gist options
  • Save elmoiv/8ec41737ddfad41981a9a67a09527933 to your computer and use it in GitHub Desktop.
Save elmoiv/8ec41737ddfad41981a9a67a09527933 to your computer and use it in GitHub Desktop.
[Python Tricks #1] Check if number is integer.
is_int = lambda n: not n % 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment