Python Program to Find Largest Number in a List

import functools
def max_ele(x,y):
return x>y
num list=[6.8,7,2,1,3]
print("Largest Number in the list is :", functools.reduce(max, num_list))

Output:
Largest Number in the list is : 7