I try to import negated
from 03_a_ImportPredefinedWordLists.py
(where negated
along with some other functions is stored). I tried what is suggested in this post
from 03_a_ImportPredefinedWordLists import negated
Python complains about syntax error because the .py
starts with a number.
File "<ipython-input-12-fc574baf5a3f>", line 1
from 03_a_ImportPredefinedWordLists import negated
^
SyntaxError: invalid token
If I rename the .py
file to ImportPredefinedWordLists
, it works fine. Given there are many .py
files, I numbered them, to keep track. I would not like to change that unless I have to. Is there a "workaround". I tried to escape using \
but could not get it working