3 ms·
List comprehensions or map are the way that a Pythonista would do this: [transform(x) for x in my_list] map(transform, my_list)
by koenigdavidmj 16y ago
List comprehensions or map are the way that a Pythonista would do this:
[transform(x) for x in my_list]
map(transform, my_list)