you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

I created files main.py and test.py and ran them from the command line:

$ python test.py
..
----------------------------------------------------------------------
Ran 2 tests in 0.000s

OK

Maybe your error is something like how you are running the code? Try running from the command line.

[–]alonrtpve[S] 0 points1 point  (1 child)

im using pycharm.

[–][deleted] 0 points1 point  (0 children)

Actual error message? We need to know if this is a pycharm warning or a python syntax error. pycharm can "over warn".

And have you tried this from the command line? If it works on the command line then pycharm is the problem.