Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

find minimum and maximum element in an array

#In python
#List
myListName = ["value", 3, 3.1, "a", True]
minimumValue = min(myListName)
maximumValue = max(myListName)

#Numpy array
import numpy as np
myListName = ["value", 3, 3.1, "a", True]
myArrayName = np.array(myListName)
minimumValue = min(myArrayName)
maximumValue = max(myArrayName)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #minimum #maximum #element #array
ADD COMMENT
Topic
Name
8+8 =