Sezione 2. Capitolo 8
single
Challenge: Sum of Squares of Even Numbers
Scorri per mostrare il menu
Compito
Scorri per iniziare a programmare
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 8
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione