Osio 2. Luku 8
single
Challenge: Sum of Squares of Even Numbers
Pyyhkäise näyttääksesi valikon
Tehtävä
Pyyhkäise aloittaaksesi koodauksen
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 8
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme