Page 1 of 1

## Question 7: statistics (8 marks) Write a program that asks the user to enter numbers until they enter the character '

Posted: Tue May 24, 2022 8:39 am
by answerhappygod
## 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.