unexpected error please solve this for my ss file as mention as in tutorial
Title
Question
import ss
Traceback (most recent call last):
File "c:\python\python3.9.4\lib\site-packages\IPython\core\interactiveshell.py", line 3441, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-15-c2e5125ec1bc>", line 1, in <module>
import ss
File "C:\Users\My Pc\ss.py", line 6
if__name__=="__main__":
^
SyntaxError: invalid syntax
Python-3.4.3 Writing-Python-Scripts 06-07 min 20-30 sec
Answers:
In your statement if__name__=="__main__":
please add a space between if and __name__
Login to add comment