新手python问题,求大佬们帮忙

新手上路,请多包涵

Smart stats
Write a module called stats that contains two functions:

mean - returns the mean of a list (average)

std - returns the sample standard deviation of a list

Requirements

Parameters: data (list)

Both functions must only accept a list input. When something other than a list is passed to the function then the function should immediately end and return None.

Both functions should ignore non-numeric values in the list.

阅读 960
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题