Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Lambda with Filter | Higher-Order Functions and Lambdas
Functional Programming Concepts in Python
Seção 2. Capítulo 7
single

single

Challenge: Lambda with Filter

Deslize para mostrar o menu

Tarefa

Deslize para começar a programar

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 7
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt