Skip to content

Instantly share code, notes, and snippets.

@tarunama tarunama/map_sample.py
Last active Aug 29, 2015

Embed
What would you like to do?
[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
You can’t perform that action at this time.