Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

min max and avg function of python

#min,max and avg of A list 
example;
a=eval(input("enter list"))
b=min(a)
c=max(a)
d=sum(a)/len(a)
print('min -',b,'max -',c,'avg -',d)
--------------------------------------------------------------------------------
enter list[1,2,3,4,5,6,7,8,9]
min - 1 max - 9 avg - 5.0
 
PREVIOUS NEXT
Tagged: #min #max #avg #function #python
ADD COMMENT
Topic
Name
9+7 =