Coding Challenge: Functional Programming

Test your skills by solving the coding challenge on functional programming presented below.

Problem

Given a list of integers, compute the sum of the squares of all the elements in the lists that are less than 50.

Note: You are not allowed to use any loops. You are supposed to do this using functional programming!

Sample input

numbers = [10,3,52,79]

Sample output

109

The number smaller than 50: 10 and 3

The squares of 10 and 3: 100 and 9

Sum of the squares: 109

Coding exercise

Please use the below provided coding playground.

Get hands-on with 1200+ tech skills courses.