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

single

Challenge: Sum of Squares of Even Numbers

Deslize para mostrar o menu

Tarefa

Deslize para começar a programar

Write a function that takes a list of numbers and returns the sum of the squares of all even numbers using map, filter, and lambda.

  • Filter the input list to keep only even numbers.
  • Use map and lambda to square the filtered numbers.
  • Return the sum of the squared even numbers.

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 8
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