Skip to content · ⁨Passer au contenu⁩

Grade letter · ⁨Note alphabétique⁩

English

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.

Français

Note alphabétique

mark est 72. Imprimez A pour 80 et plus, B pour 70 à 79, C pour 60 à 69, et D en dessous.

L'ordre compte. Parce que Python s'arrête au premier test vrai, vérifier >= 60 en premier donnerait C à toutes les bonnes notes. Commencez par le haut et descendez.

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP