Question: Python Need help figuring out opening loop and type casting, along with code structure! You first print this string Enter a series of numbers. Press
Python Need help figuring out opening loop and type casting, along with code structure! You first print this string "Enter a series of numbers. Press ENTER alone when finished. In Then you walt in a loop while the user enters numbers. If they enter nothing, then you're done accepting numbers. If they enter something that can't be cast as an integer, then just ignore it and keep waiting. Finally, if they enter a number, cast it as an integer and store it in a list. Once you have the list, present it to the user, use your get outliers() function to show the user a list of outliers, and then use your remove_outliers() function to remove them from the data. then, you are to use the outlier-removed numbers to indicated the following information *Functions are done and work and needed the mean -- use your average() function the standard deviation -- use your standard deviation function the variance -- that's just the square of the standard deviation, so use your square() function the minimum and maximum -- luckily, Python provides the min) and max() functions! the lower quartile -- the bottom 1/4th of numbers from the ranked (aka ordered) data the upper quartile -- the top 1/4th of numbers from the ranked (aka ordered) data E.g. 343 939 495 2233 897 32 898 877 499 534 402 522 777 666 Your program should output the following (formatted exactly as shown): Data Entered Numbers: (343, 939, 495, 2233, 897, 32, 898, 877, 499, 534, 402, 522, 777, 666] Outliers: [2233, 32] Numbers w/o Outliers (343, 939, 495, 897, 898, 877, 499, 534, 402, 522, 777, 666] Analysis (outliers removed from data) Mean - 654.083 Std Dev = 214.511 Variance 46015.174
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
