Skip to content

Instantly share code, notes, and snippets.

@steffanydev
Created March 26, 2020 00:03
Show Gist options
  • Select an option

  • Save steffanydev/664f42c5632db1e88f4b87975bae58e2 to your computer and use it in GitHub Desktop.

Select an option

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
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