Why do I get a SyntaxError when I type in a “python” command at the chevron prompt (“>>>”)?
00:39 20 Apr 2012

I am just getting started with Python and wrote a simple perimeter program. However whenever I type python perimeter.py in my terminal I get the following error I don't know how to solve it.

>>> python perimeter.py
  File "", line 1
    python perimeter.py
                   ^
SyntaxError: invalid syntax

What is that problem? How do I fix it?

Thanks.

python syntax syntax-error