Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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: 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started