Answers for "how to calculate maximum in an array python"

2

max of matrix numpy

# Get the maximum element from a Numpy array
maxElement = numpy.amax(arr)
 
print('Max element from Numpy Array : ', maxElement)
Posted by: Guest on May-11-2020
2

get biggest value in array python3

array = [1,2,3,100,4,5]

biggest = max(array)

print(biggest) # prints 100
Posted by: Guest on June-07-2020

Code answers related to "how to calculate maximum in an array python"

Python Answers by Framework

Browse Popular Code Answers by Language