Processing Collections in Python Using Lambdas
Being able to perform actions on a collection is incredibly useful in any type of programming, and it is pretty common to need to perform a single action on each item. We could do this by using a loop, but there are built-in collection functions that can take a collection and a function or lambda to run each item through. In this hands-on lab, we utilize higher-order functions to process some existing lists by using lambdas.
To feel comfortable completing this lab you'll want to know how to do the following:
- Define and use lambdas. Watch "Defining and Using Lambdas" from the Certified Associate in Python Programming Certification course.
- Use higher-order functions and collection functions. Watch "Using Collection Functions" from the Certified Associate in Python Programming Certification course.