Answers for "You are given a list of numbers such as input_list = [31, 63, 76, 89]. Find and print the largest number in input_list using the reduce() function"

4

reduce in python

'''try this'''
from functools import reduce
a = [1,2,3,4]

SUM = reduce(lambda n,n2:n+n2,a)

print(SUM)
Posted by: Guest on October-15-2020

Code answers related to "You are given a list of numbers such as input_list = [31, 63, 76, 89]. Find and print the largest number in input_list using the reduce() function"

Python Answers by Framework

Browse Popular Code Answers by Language