I made this code but the error on the 2nd line:
In this case I did this function to solve a problem that my teacher passed, to know if a student was approved, disapproved, approved with praise or if he is going to do final proof. Please help me.
def AnalisarSituacao():
nota1, nota2, nota3, nota4 = float(input())
mediaP= (nota1*1+nota2*2+nota3*3+nota4*4)/10
if mediaP >=3:
if mediaP <7:
print('prova final')
if mediaP <3:
print('reprovado')
if mediaP >=7:
if mediaP <9:
print('aprovado')
if mediaP >=9:
print('aprovado com louvor')