Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aluno = input('Digite o nome do aluno: ')
- nt1 = float(input('\nDigite a primeira nota: '))
- if nt1 > 10:
- nt1 = nt1/10 # converter notas estilo 100 em 10.0
- nt2 = float(input('\nDigite a segunda nota: '))
- if nt2 > 10:
- nt2 = nt2/10 # converter notas estilo 100 em 10.0
- media = (nt1+nt2)/2
- print('\nA media do(a) aluno(a) {} {:.1f}:'.format(aluno, media))
- if media >= 6:
- print('\n{:*^20}'.format('Aprovado'))
- else:
- print('\n{:*^20}'.format('Reprovado'))
Advertisement
Add Comment
Please, Sign In to add comment