Threshold Filter
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L3
Problem
Given a dict d mapping keys to numeric values, and a numeric threshold, return a new dict containing only the entries whose value is greater than or equal to the threshold. Preserve original keys.
Summary
Above the line or below it.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.