Grade Calculator
A report-card generator built entirely from if/elif/else — the exact kind of grading logic used by real school and university systems.
Grading scale
| Average | Grade |
|---|---|
| 75 and above | A |
| 60 - 74 | B |
| 50 - 59 | C |
| 40 - 49 | D |
| below 40 | Fail |
Example run
Output
Enter marks in Math: 80
Enter marks in Science: 70
Enter marks in English: 65
Enter marks in History: 90
Enter marks in Computer Science: 85
=== Report Card ===
Average: 78.0
Grade: A
How to run
Download
starter.py below and run python3 starter.py.
Ideas to make it your own
- Add a check that rejects marks above 100 or below 0.
- Print which subject was the strongest and weakest.
- Add a "Distinction" grade for averages above 90.
Why this project matters
Grading logic like this appears constantly in real systems: eligibility checks, pricing tiers, risk scoring, access levels. The elif-chain ordering skill you practiced here is genuinely transferable.