Created
March 26, 2020 00:03
-
-
Save steffanydev/664f42c5632db1e88f4b87975bae58e2 to your computer and use it in GitHub Desktop.
Crie um programa que leia três notas de um aluno e calcule sua média, mostrando uma mensagem no final, de acordo com a média atingida: - Média maior ou igual 7.0: APROVADO - Média entre 5.0 e 6.9: RECUPERAÇÃO - Média menor que 5.0: REPROVADO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nota1 = float(input('Informe uma nota: ')) | |
| nota2 = float(input('Informe uma nota: ')) | |
| nota3 = float(input('Informe uma nota: ')) | |
| media = ((nota1 + nota2 + nota3) / 3) | |
| if media >= 7: | |
| print('APROVADO') | |
| elif media >= 5 and media <= 6.9: | |
| print('RECUPERAÇÃO') | |
| else: | |
| print('REPROVADO') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment