Created
December 7, 2019 11:38
-
-
Save elmoiv/8ec41737ddfad41981a9a67a09527933 to your computer and use it in GitHub Desktop.
[Python Tricks #1] Check if number is integer.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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