from functools import reduce nums = [5,3,9,4] def sum(a,b): return a+b print(reduce(sum,nums))
Father of Python Language
Makeitsimple.co.in