Last active
August 29, 2015 14:00
-
-
Save tarunama/11085280 to your computer and use it in GitHub Desktop.
[Python] map ってなんだろう ref: http://qiita.com/tarunama/items/4e77339edd0cb10c5e19
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
items = ["2", "4", "8"] | |
for r in map(int, items): | |
print(isinstance(r, int)) | |
""" | |
output | |
True | |
True | |
True | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment