1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Python for Developers

Connected

Exercise

Lambda functions with iterables

You've used lambda functions on single values - now let's apply them to entire lists! This is where lambda functions really shine: when you need the same operation on every item.

In this task, you'll process a list of colleague names using a lambda function applied to the entire list.

Instructions

100 XP
  • Apply the lambda function to each value in the colleagues list, saving as cleaned.
  • Convert the map object to a list, saving as cleaned_list.