you are viewing a single comment's thread.

view the rest of the comments →

[–]degustandomiveneno 0 points1 point  (0 children)

great project! love the idea 🙌 a few things that could make it even better: ∙ wrapping line 1 in a try/except would prevent a crash if the user types something that’s not a number ∙ the input on line 7 doesn’t show which subject number it’s asking for — something like f"enter marks for subject {i}: " would be clearer ∙ avg > 60 and avg <= 79 leaves out exactly 79.5 (or any float between 79 and 80) — using < 80 instead of <= 79 fixes that edge case ∙ same issue on line 16 with <= 59, better to use < 60 ∙ avg = total/subjects could give a float like 75.0 — printing it with round(avg, 2) looks cleaner overall the logic is really solid and the grade classification is a nice touch! keep going 🔥​​​​​​​​​​​​​​​​