Python Forum
how to write a function that accepts a 1D array as a parameter in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to write a function that accepts a 1D array as a parameter in Python
#1
Question 
5. Given a 1 D Numpy Array. Write a function that accepts this array as parameters. The method

should return a dictionary with 'mean' and 'std_dev' as key and array's mean and array's

standard deviation as values:

[1, 1, 1]

solution(arr) -> should return :

{'mean': 1.0, 'std_dev': 0.0}
Reply
#2
please read: Homework and No Effort Questions
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  function parameter function bendarodes 0 1,952 Feb-24-2019, 11:52 AM
Last Post: bendarodes

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020