Skip to content

Instantly share code, notes, and snippets.

@tarunama
Last active August 29, 2015 14:00
Show Gist options
  • Save tarunama/11085280 to your computer and use it in GitHub Desktop.
Save tarunama/11085280 to your computer and use it in GitHub Desktop.
[Python] map ってなんだろう ref: http://qiita.com/tarunama/items/4e77339edd0cb10c5e19
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