Created
May 11, 2015 00:37
-
-
Save mu-777/991274602539a24100bc to your computer and use it in GitHub Desktop.
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
nums = [1, 1.0, complex(1, 1)] | |
for num in nums: | |
print(isinstance(num, (int, float, complex))) | |
# True | |
# True | |
# True | |
print(isinstance(nums, list)) | |
# True | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment