I started programming shortly and I'm doing some Python exercises.
The problem is that the result variable always returns "Approved" even when the concept is "D" or "E".
I have already broken my head and can not see the error.
Make a program that reads the two partial marks obtained by a student in a course over a semester, and calculate their average. The assignment of concepts obeys the table below: Average Utilization Concept Between 9.0 and 10.0 A Between 7.5 and 9.0 B Between 6.0 and 7.5 C Between 4.0 and 6.0 D Between 4.0 and zero E The algorithm should display the notes, the mean, the corresponding concept and the message "APPROVED" if the concept is A, B or C or "FAILED" if the concept is D or E.
nota1=float(input("Digite nota 1: "))
nota2=float(input("Digite nota 2: "))
media=(nota1+nota2)/2
if media >=9:
conceito = "A"
elif media >= 7.5:
conceito = "B"
elif media >= 6:
conceito = "C"
elif media >= 4:
conceito = "D"
elif media >= 0:
conceito = "E"
if conceito == "A" or "B" or "C":
resultado = "Aprovado!"
elif conceito == "D" or "E":
resultado = "Reprovado"
print("Nota 1: %.2f\nNota 2:%.2f"%(nota1,nota2))
print("Média: %.2f"%media)
print("Conceito: %s"%conceito)
print("Resultado: %s"%resultado)