Problem 1: Detect Outliers Using the IQR Method
Easypython
Problem Description
Write a Python program that calculates Q1, Q3, and IQR for a given list of numbers, then identifies and prints any outliers using the standard 1.5×IQR rule.
Input
A list of numbers.
Output
The calculated IQR bounds, and any detected outliers.
Constraints
- The list will contain at least 5 numbers.
Example Input
text[10, 12, 11, 13, 12, 100]
Example Output
textLower bound: 8.75, Upper bound: 14.75 Outliers: [100]
Concepts Covered
Quantiles, IQR calculation, conditional filtering.