Last active
February 27, 2019 12:23
-
-
Save eLtronicsVilla/1e5d98f40dcc3db52a4e2268057ccd18 to your computer and use it in GitHub Desktop.
mean calculation on given data set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the function formate only to calculate mean on given data set | |
price = [500,1800,4600,1200,2000] | |
def mean(x): | |
return sum(x) / len(x) | |
mean(price) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment