Python Program to find minimum and maximum elements in the array
A number which is less than other number is said as minimum number and another number is called as maximum number. In this post we are going to write solution for minimum nd maximum element in the array
Input:
1 2 3 4
Output:
minimum element=1
maximum element=4
Explanation:
[1,2 ,3 ,4]
min = 1 , max =4
Code:
arr=list(map(int,input().split()))
print("minimum element=",min(arr))
print("maximum element=",max(arr))
Note:
Hello Guys, Don't Stop Learning keep Going..............