saving . . . saved %run marks.py has been deleted. %run marks.py has been hidden .
%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 14-08-20, 2:20 p.m. ASHABAREE

Answers:

Please use the : symbol after the for loop syntax line
07-09-20, 10:15 p.m. ankitrj.iitb


Log-in to answer to this question.