Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Python :: python reciprocal 
Python :: install gtts 
Python :: how to switch python version in ubuntu 
Python :: matplotlib background color 
Python :: create text in python if not exists 
Python :: format date field in pandas 
Python :: how to convert kg to g using python 
Python :: how to join a string by new line out of a list python 
Python :: python except show error 
Python :: how to order ints from greatest to least python 
Python :: python flask replit 
Python :: redirect to the same page django 
Python :: python get all file names in a dir 
Python :: show image jupyter notebook 
Python :: python create n*n matrix 
Python :: calculate mape python 
Python :: python roll dice 100 times 
Python :: get current working directory python 
Python :: write custom query odoo 
Python :: python discord discord.py disable remove help command 
Python :: to int in pandas 
Python :: write set to txt python 
Python :: sklearn version 
Python :: procfile flask 
Python :: python tkinter close gui window 
Python :: 1 day ago python datetime 
Python :: python webbrowser 
Python :: quadratic formula python 
Python :: could not find runder jupyter notebook 
Python :: Liczby zespolone Python 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =