Seção 2. Capítulo 8
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
mapandlambdato square the filtered numbers. - Return the sum of the squared even numbers.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 8
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo