saving . . . saved %run marks.py command error in windows has been deleted. %run marks.py command error in windows has been hidden .
%run marks.py command error in windows
Title
Question
In [27]: %run marks.py
  File "C:\Users\wci\marks.py", line 8
    if region_code== "A";
                        ^
SyntaxError: invalid syntax

Python-3.4.3 Parsing-data 09-10 min 50-60 sec 29-08-21, 9:19 a.m. @its_Prachit

Answers:

In python the if statement ends with : (colon) and you have added a ; (semi colon) that is why there is syntax error.
06-09-21, 3:54 p.m. aditya94palaparthy@gmail.com


Log-in to answer to this question.