Syntax Error in list [closed]

1

I was doing the following exercise: "Make a program that reads 4 notes, shows notes and media on screen."

My program looks like this:

lista = [ ]

i =  0

soma = 0


while(i < 3):

      nota = int(input("Digite a nota do aluno:")    
      lista.append(nota)    
      i = i + 1
      soma = soma + nota

media = soma/4               


print("As notas foram:", lista)

print("A media foi:", media)

However, it is giving syntax error in the list ( lista.append(nota) ). Does anyone know why?

    
asked by anonymous 21.06.2017 / 02:24

0 answers