Example-
list is [1,2,3,4]
then sum of square is 30
program-
#import the functools module
import functools
l=[1,2,3,4,5]
print("List is ",l)
l=list(map(lambda x:x**2,l))
print("List become",l)
sum=functools.reduce(lambda x,y:x+y,l)
print("Sum of square is :",sum)
List is [1,2,3,4,5]
List become [1,4,9,16,25]
Sum of square is : 55