3 ms·
In that case I'd use map(itemgetter(1), words)
by icebraining 12y ago
In that case I'd use
map(itemgetter(1), words)
- a3n 12y agoInstead of my map example, or instead of a list comprehension in general?
- icebraining 12y agoInstead of a list comprehension equivalent to your example.