Complete the nested functions: is_passing returns True if grade >= threshold
A medium Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- medium
Interview Prompt
Complete the nested functions: is_passing returns True if grade >= threshold. get_letter returns 'A' for 90+, 'B' for 80+, 'C' for 70+, 'D' for 60+, 'F' otherwise. In the loop, print each grade with its letter and Pass/Fail status.
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