min max value python without inbuilt function code example
Example: MIn-Max problem in python
x = sum(arr)
minValue = x - max(arr)
maxValue = x - min(arr)
print(minValue, maxValue)
x = sum(arr)
minValue = x - max(arr)
maxValue = x - min(arr)
print(minValue, maxValue)