Grade letter · Note alphabétique
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.
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.
mark is 72. Print A for 80 and above, B for 70 to · à 79, C for 60 to · à 69, and D below that. · mark est 72. Imprimez A pour 80 et plus, B pour 70 à 79, C pour 60 à 69, et D en dessous.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.