%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
Answers:
In python the if statement ends with : (colon) and you have added a ; (semi colon) that is why there is syntax error.
Login to add comment