Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

maximum and minimum value of array python

list1 = [2,8,1,2,7,12,10]
min_val = min(list1)  #Finds the minimum value using the built-in python function
max_val = max(list1)  #Finds the maximum value using the built-in python function
Comment

Find Maximum and Minimum Values of a List

list =[-52, 56, 30, 29, -54, 0, -110]

const min =(list) =>  Math.min(...list)

const max =(list) => Math.max(...list)
 
Comment

PREVIOUS NEXT
Code Example
Python :: train slipt sklearn 
Python :: hostname python 
Python :: find an index of an item in a list python 
Python :: play music pygame 
Python :: generate all combinatinosrs of a list pyton 
Python :: ffill python 
Python :: making a return from your views 
Python :: python check samplerate of mp3 
Python :: python readlines end of file 
Python :: if string is in array python 
Python :: python request coinmarketcap 
Python :: how to print horizontally in python 
Python :: list to dict python with same values 
Python :: cli args python 
Python :: title tikinter 
Python :: play sound python 
Python :: xgboost algorithm in python 
Python :: remove rows from pandas 
Python :: end in print python 
Python :: depth first search python recursive 
Python :: list methods append in python 
Python :: how to run fastapi with code python 
Python :: matplotlib figure size not working 
Python :: display image from sql with python 
Python :: python asyncio gather 
Python :: sendgrid django smtp 
Python :: counting combinations python 
Python :: fibonacci sequence in python 
Python :: read excel date in python 
Python :: keyword python 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =