Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write in python Q1 5 Points: Modify the program that removes outliers The following is the description of a problem presented in class and

image text in transcribedplease write in python

Q1 5 Points: Modify the program that removes outliers The following is the description of a problem presented in class and the corresponding Python script that was implemented to solve it You are now asked to modify this script to implement the function that creates a new copy of the input data with the following two conditions: - The outliers should be replaced by None instead of being removed - All the data points should remain in their original locations. For example, in the test case shown with the script above, the output should be given as: None, 4, None, 2,5,8,3, None, None Q2: 5 points Program that reads word strings and creates a list of unique inputs In this question, you are asked to create a program that reads words from the user until the user enters a blank line. After the user enters a blank line your program should display each word entered by the user exactly once. Your search for the unique words should not be case-sensitive. E.g., 'first', 'FIRST', 'First', etc should all be considered a single word. The words should be displayed in the same order that they were entered. - For example, if the user enters: first SECOND First third second third - then your program should display: first second third

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions