Where to go from here? newbee

engsolnom at ipns.com engsolnom at ipns.com
Thu Jan 1 13:54:43 EST 2004


Richard,

Being a newbie to Python myself, I can relate.

One way...assuming windows
Click on the python command line thing you evidently found. This gives you a dos box showing the
Python prompt...>>>
Just type Python commands: print "Hello World", for example
Control Z to exit

Another way....
Bring up a 'real' dos box, cd to Python23, or whatever your install named it, and enter python
This again shows the Python prompt >>>

>From the dos prompt, you can run a Python script by entering:
python myscript.py
where myscript is a text file with an extension of py, and located in the C:\python23 dir.

If you make a sub-directory myfiles (adviable) under C:\python23, to hold your test scripts, you
need to enter:
python myfiles\myscript.py

A third way...
Use a text editor to manage files and directories, and which may be able to launch dos commands.
There are dozens of editors out there, some good, some not so good. I use PFE, and have for years.

Hope this helps a bit.

Norm

On Thu, 1 Jan 2004 09:45:00 -0600, "Richard" <anonymous at 127.000> wrote:

> Jules Dubois wrote:
>
> > On Wed, 31 Dec 2003 23:22:43 -0600, in article
> > <news:bt0asa02hj8 at enews1.newsguy.com>, Richard wrote:
>
> >> Just downloaded python for the fun of it.
> >> What do I run to begin coding with?
> >> Version 2.3.3
>
> > Yes, unless you have some reason to use an older release.
>
> >> When I run the "command line" thing, I get a dos window.
> >> Now what?
>
> > Type some commands and see how the interpreter works.
>
> > Go to http://www.cs.unm.edu/~ej and click on these links.
>
> >   Python Hacking I (Just do it!)
> >   Python Hacking II (types, functions, exceptions)
> >   Python Hacking III
>
> > Type the commands and see what happens.
>
> > Go to http://www.python.org/ and find some more advanced tutorials.
>
>Ok. Now I'm slowly understanding. I guess you could say that python is
>similar to visual basic and c++ in coding.
>I have a program written in python which has several "py" files included.
>How do I view these for the coding examples?
>




More information about the Python-list mailing list