The map() function: BEHIND THE SCENES!

Hi! First of all, congratulations! You are on Week 3 of the course, and on your way to a wonderful future in CS!.
Welcome to this section. We will discuss the powerful function map() and how it can help us during our coding endeavors.

Let’s get started!






Step by Step Example

Here is an example broken down step by step of how the function map work behind the scenes
NOTE: you won’t see them actually being executed when you call map, but you will see the final result, the list or iterable with the resulting values of applying the function to each element in the list provided as argument.







Hope it helps!
If you have any questions, please post them in the forums. Your classmates and Community TAs will be there to help you! :)
Estefania.

Comments