Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Lambda with Filter | Higher-Order Functions and Lambdas
Functional Programming Concepts in Python
Section 2. Chapter 7
single

single

bookChallenge: 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 lambda function as the filtering criteria.
  • Use filter to apply the lambda function to the input list.
  • Return a list containing only the strings whose length is greater than 3.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 7
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt