advancedcoding10 min
Design a small Python script for processing learner scores.
Design a small Python script for processing learner scores and returning pass/fail summaries.
Expected Answer
Break the work into small functions: validate input, calculate score summaries, and format output.
Detailed Explanation
This tests decomposition, naming, edge cases, and whether your script can grow without turning into one large block.
Practice this concept in the browser.
python
Reset codeCopy codeFormat codeFull screen
Output
Practice mode output appears here.
Common Follow-up Questions
- How would you validate inputs?
- How would you test empty score lists?