← Functional Python
Transform with map()
① Learn
map() applies a function to each item in a collection. It is useful when every value should be transformed the same way.
② Implement — write it, run it, submit
Goal
Make `doubled` equal `[4, 8, 12]`.
Output
Hints
- Stuck? Reveal a hint.