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)

Comments

Popular posts from this blog

5 Best Java frameworks

Learning a technology