Problem 4: Outlier Detector Using Standard Deviation
Easypython
Problem Description
Write a Python program that identifies "outliers" in a dataset — any value that is more than 2 standard deviations away from the mean — and prints them.
Input
A list of numbers.
Output
A list of values considered outliers (more than 2 standard deviations from the mean).
Constraints
- The list will contain at least 5 numbers.
Example Input
text[10, 12, 11, 13, 12, 100]
Example Output
textOutliers: [100]
Concepts Covered
Mean, standard deviation, conditionals, loops.