## Question 7: statistics (8 marks) Write a program that asks
the user to enter numbers until they enter the character 's' to
stop. Store the numbers in a numpy array. Print out the mean and
standard deviation of the values entered. Hints: (1) Use a while
loop to input values until the letter s is entered. (2) Append the
values to a list in the while loop and create a numpy array from
the list after all the values have been entered. (3) The method
std() returns the standard deviation of a numpy array.
## Question 7: statistics (8 marks) Write a program that asks the user to enter numbers until they enter the character '
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am