Beginner in Python
schrist at gmx.net
Wed Nov 7 08:58:28 CET 2001
thank you. This was my mistake. I also tried it at the dos promptyesterday, but
I worked in the wrong directory.
Emile van Sebille schrieb:
> Hah... I got caught explaining this one last week. ;-)
> You are to type "python helloworld.py" at the dos prompt
> ("C:\Dir\Of\HelloWorld>"), not the python prompt (">>>"). I suspect that as
> double click it in the explorer that everything else required is already in
> Emile van Sebille
> emile at fenx.com
> "Christian Schnell" <schrist at gmx.net> wrote in message
> news:3BE85DF9.CDF844D2 at gmx.net...
> > Hi,
> > I wanted to start programming in python today and had some problems.
> > I wrote the famous "Hello, world"-programm and saved it as
> > helloworld.py. If I open the programm directly in the explorer it works
> > but I cannot start it from Ms-Dos. If I type python helloworld.py I get
> > the message:
> > File "<stdin>", line 1
> > python helloworld.py
> > ^
> > SyntayError: invalid syntax
> > What is my mistak? Can anyone help me?
> > Thank you,
> > Christian
> > --
> > Don't panic.
> > ICQ 116707729
More information about the Python-list