Answer to Question #309788 in Python for Kimberley Miller

Question #309788

1.How do you store the result of a function in a variable?


2.. What are some popular Python libraries?


1
Expert's answer
2022-03-11T07:24:47-0500
#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
'''

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS