Assumption static Array in the code
[10, 4, 5, 1, 7, 9, 0, 2, 99]
Maximum is: 99 Minimum is: 0
Assumption static Array in the code
[10, 4, 5, 1, 7, 9, 0, 2, 99]
Maximum is: 99 Minimum is: 0
You can simply use the .min() and .max() functions build in to python (if that is what you are using) and use the following code which will store the minimum and maximum values of the array in the variables minimum and maximum.
array = [10, 4, 5, 1, 7, 9, 0, 2, 99]
minimum = array.min()
maximum = array.max()