Loading...
Threshold Filter
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
A downstream consumer only wants metrics that meet a minimum threshold. Filter the dict to entries where the value is greater than or equal to the threshold and return the result as a new dict.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.