Build confidence with input handling, loops, functions, lists, and strings.
Write a program that:
- Reads an integer
N(N > 0). - Reads
Nfull names and exam scores (0..100). - Prints:
- all records
- average score
- highest score with student name
- lowest score with student name
- pass count (
score >= 60)
- Difficulty: Beginner.
- Estimated Time: 30-45 minutes.
- Prerequisites: All
01-foundationsmodules, especiallytypes-and-io,control-flow, andstrings. - Learning Focus: Prove you can read structured input, preserve names, and compute accurate summaries without step-by-step scaffolding.
python main.py3
Ana Smith
91
Bob Lee
55
Carla Mendez
88
Students:
- Ana Smith: 91
- Bob Lee: 55
- Carla Mendez: 88
Average: 78.00
Highest: Ana Smith (91)
Lowest: Bob Lee (55)
Passed: 2/3
- Compared with the C++ assessment, this version reaches the same summary goal with much less syntax and more runtime flexibility.
- Relative to C#, Go, and TypeScript, fewer mistakes are caught before execution.
- The comparison to watch is how much structure the learner must impose manually.
- full names are preserved exactly as entered
- highest and lowest records match the actual dataset
- pass counts and averages use the required scoring rules