Ask coding questions
syntax error in line 8, I don't understand, perhaps it's a simple mistake?
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]))
Make sure all of the python lines which need an indent are using the TAB indent, not just spaces with the SPACE bar.