1.How do you store the result of a function in a variable?
2.. What are some popular Python libraries?
#1.How do you store the result of a function in a variable?
def Mean(x):
m = sum(x)/len(x)
return(m)
n = [2, 3, 4, 5]
u = Mean(n)
print("Mean of ",n,"=",u)
#2.. What are some popular Python libraries?
'''
numpy
pandas
matplotlib
random
sklearn
scipy
math
statistics
re
'''
Comments
Leave a comment