Question: please type the code for the whole python program, letters are steps not individual questions 4. Write a Python program stored in file L3q4.py that:
4. Write a Python program stored in file L3q4.py that: A. Gets the weights of a population of three dogs and prints them. (Note: Assume the weights are in pounds.) B. Finds the mean of the weights and stores the result in a variable called mean_weight. Print the mean of the weights. C. Computes the variance of the weights and stores the result in a variable called variance_weights. Print the variance of the weights. D. Computes the standard deviation of the weights and stores the result in a variable called sd weights. Print the standard deviation of the weights. Note: Do not use any math libraries. Mean ()= average of the values Variance (2)= average squared deviation of values from the mean. 2=N(X)2 Standard deviation ()= square root of the variance. It is a measure of the extent to which data varies from the mean. =varanese N= Total number of values. Note :- Do not use 'if' conditions/statements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
