Sectie 2. Hoofdstuk 8
single
Challenge: Sum of Squares of Even Numbers
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 8
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.