Skip to content

Grade letter

Grade letter

mark is 72. Print A for 80 and above, B for 70 to 79, C for 60 to 69, and D below that.

Order matters. Because Python stops at the first true test, checking >= 60 first would give C to every good mark. Start at the top and work down.

Log in or create account

IGCSE, A-Level & AP