Loading...
The Progress Meter
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- junior, mid
Problem
Given an iterable of length K, write a function that processes each element and prints a progress update every time another 10% of the work is completed. For K=50, it should print at items 5, 10, 15, etc. Return a list of the percentage milestones that were printed, as integers.
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.