map(function, sequence)
Given a function and a sequence, constructs a sequence of the results of applying the function to the elements of the sequence.
functionfunction to apply to the elements
sequencesequence to map
[1, 2, 3]
[2, 4, 6]
See also map in the official documentation
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version 3c97eb0 (Wed, 14 May 2025 17:27:27 GMT)