Complete the nested functions: is_passing returns True if grade >= threshold
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
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.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.