Grade letter · Nota em letra
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.
Nota alfabética
mark é 72. Imprima A para 80 e acima, B para 70 a 79, C para 60 a 69, e D abaixo disso.
A ordem importa. Como o Python para no primeiro teste verdadeiro, verificar >= 60 primeiro daria C a todas as boas notas. Comece do topo e desça.
mark is 72. Print A for 80 and above, B for 70 to · até 79, C for 60 to · até 69, and D below that. · mark é 72. Imprima A para 80 e acima, B para 70 a 79, C para 60 a 69, e D abaixo disso.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.