Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

The map() Function: Overview

In this section, you’ll learn more about the basics of functional programming, namely how to use the map() function to transform data structures.

You’ll take an example data set represented using an immutable data structure from the previous videos in this course, and then you’ll create a transformed version of the same data using Python’s built-in map() function. map() is one of the functional programming primitives or building blocks available in Python. It’s useful in a number of contexts.

Later in the section, you’ll also see how map() relates to list comprehensions and generator expressions and how using them is (arguably) more Pythonic that relying on plain map() calls.

Become a Member to join the conversation.