Loading interview...
The Bug Spotter
A easy Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- easy
- Seniority
- junior
Interview Prompt
Our code review tool flags functions whose output does not match expectations. Write a function called fix_running_average that computes the running average of a list of numbers. The broken version is provided. It has two bugs. Fix them so that fix_running_average([10, 20, 30]) returns [10.0, 15.0, 20.0].
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision