I’m kinda stuck on line 8... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I’m kinda stuck on line 8...

list=[] nombre=int (input("Quel est le nombre de notes?")) print(nombre) for i in range (nombre): Notes=int (input()) list.append(Notes) print("la somme de vos notes est:", sum(list) somme=int (sum(list)) #says error is here print(somme/nombre)

20th Nov 2019, 2:29 PM
Ibrahima S. Keita
Ibrahima S. Keita - avatar
5 Answers
+ 1
The problem lies on this line print("la somme de vos notes est:", sum(list) You forgot to put a matching parentheses at the end. print("la somme de vos notes est:", sum(list)) # <= add a ')'
20th Nov 2019, 3:19 PM
Ipang
+ 1
I’ve resolved it! thank you for your help
20th Nov 2019, 3:20 PM
Ibrahima S. Keita
Ibrahima S. Keita - avatar
0
thanks!
20th Nov 2019, 2:32 PM
Ibrahima S. Keita
Ibrahima S. Keita - avatar
0
I’ve changed it to ichigo(bleach) it says that it’s a syntax errror on line 8 buuuuuuuuttt I don’t see any error soooo, what to do? And this code is supposed to go onto my calculator so that I can use it to easily calculate my final grade
20th Nov 2019, 2:38 PM
Ibrahima S. Keita
Ibrahima S. Keita - avatar
0
thanks!
20th Nov 2019, 3:20 PM
Ibrahima S. Keita
Ibrahima S. Keita - avatar