silly question about Running a script from the command line

Joined
Apr 10, 2013
Messages
1
Reaction score
0
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top