%run marks.py
Title
Question
I tried running the command after saving the marks.py in the working directory but it still shows
%run mark.py
File "C:\Users\HP\mark.py", line 2
for line in open("student_record.txt")
^
SyntaxError: invalid syntax
Python-3.4.3 Parsing-data 09-10 min 10-20 sec
Answers:
Please use the : symbol after the for loop syntax line
Login to add comment