hello everybody.
I am a completely beginner in python.
I would like to Run a script from the command line. I have created the script ex.py (simple "hello word" script), then saved it as "ex.py" on a directory.
from the command line I have entered the directory, then made python start.
I typed:
% python -i ex.py
and as a result I have "Syntax error: invalid syntax"
with a small arrow pointing at %.
why?
thank you everybody!
I am a completely beginner in python.
I would like to Run a script from the command line. I have created the script ex.py (simple "hello word" script), then saved it as "ex.py" on a directory.
from the command line I have entered the directory, then made python start.
I typed:
% python -i ex.py
and as a result I have "Syntax error: invalid syntax"
with a small arrow pointing at %.
why?
thank you everybody!