TOPIC

RUNTIME ERROR - PYTHON

Jorge Costa Barbosa asked 1 year ago

avaliacao = [0,1,2,3,4,5,6,7,8,9,10] avaliacaoDois = [0,1,2,3,4,5,6,7,8,9,10]

avaliacao = int(input()) avaliacaoDois = int(input())

if avaliacao >= 11: print('nota invalida') elif avaliacaoDois >= 11: print('nota invalida') elif avaliacao < 0: print('nota invalida') elif avaliacaoDois < 0: print('nota invalida') else: calculo = (avaliacao+ avaliacaoDois) / 2 mediaSemestral = calculo print('media = %.2f' % mediaSemestral)

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.