Ask coding questions

← Back to all posts
Salman767XD (0)

syntax error in line 8, I don't understand, perhaps it's a simple mistake?

Coder100 (18872)

When you find invalid syntax errors, the best way to go is actually look the line above it!

notice anything on line 7?
You are missing a )!

marks = int(input("enter the exam result for",names[index]))
adityavengata (18)

Make sure all of the python lines which need an indent are using the TAB indent, not just spaces with the SPACE bar.