Section 2. Chapter 7
single
Challenge: Lambda with Filter
Swipe to show menu
Task
Swipe to start coding
Apply your understanding of lambda functions and the filter function to solve this challenge. Your goal is to extract all strings longer than 3 characters from a given list of strings.
- Use a
lambdafunction as the filtering criteria. - Use
filterto apply the lambda function to the input list. - Return a list containing only the strings whose length is greater than 3.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 7
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat