Share your repls and programming experiences

← Back to all posts
Python primeira aula
WesleyDuarte3k (0)

exercício 4
cod=input('Digite um número: ')
N1=int(input('Digite primeira nota: '))
N2=int(input('Digite segunda nota: '))
N3=int(input('Digite terceira nota: '))
NE=int(input('Digite quarta nota: '))
M=(N1+N22+N33+NE)/7
if M>=9:
print('APROVADO')
print(M)
print('A')
elif M>=7.5:
print('APROVADO')
print(M)
print('B')
elif M>=6:
print('APROVADO')
print(M)
print('C')
elif M>=4:
print('REPROVADO')
print(M)
print('D')
else:
print('REPROVADO')
print(M)
print('E')cod=input('Digite um número: ')
N1=int(input('Digite primeira nota: '))
N2=int(input('Digite segunda nota: '))
N3=int(input('Digite terceira nota: '))
NE=int(input('Digite quarta nota: '))
M=(N1+N22+N33+NE)/7
if M>=9:
print('APROVADO')
print(M)
print('A')
elif M>=7.5:
print('APROVADO')
print(M)
print('B')
elif M>=6:
print('APROVADO')
print(M)
print('C')
elif M>=4:
print('REPROVADO')
print(M)
print('D')
else:
print('REPROVADO')
print(M)
print('E')