Python program to find greatest number in 5 input numbers using functions?

In this blog we are going to see how we can find a greatest number if 5 numbers are taken as input using a simple function.





#Python Program to find maximum number using a function
def greatest(a,b,c,d,e):
list1 = [a,b,c,d,e]
print(max(list1))

greatest(20,6,7,28,9)

No comments: