I'm currently reading a huge Python book. I've just written my first Python code (from this book).
import sys print(sys.platform) print(2 ** 100) x = 'spam!' print(x*8)
It works fine and I get the results I want.
The only problem I have right now is running it off the system Shell prompt.
And that doesn't work. I'm also typing
% python script1.py
I'm getting this syntax error
File "<stdin>", line 1 python script1.py SyntaxError: invalid syntax
What am I doing wrong? I have tried both Python Command Line and CMD just to test anything.
Edit: It seems that I haven't to place a full directory path. Can someone help me out with this?