New to Python-- Help
akameswaran at gmail.com
akameswaran at gmail.com
Tue Aug 8 17:30:27 EDT 2006
Are you refering to IDLE? or simply running python at the command
line?
In either case - python is just the language's name. It is not a
defined name within the language.
If you describe what you are trying to do, perhaps some more specific
help could be had.
What is happening:
There currently is no name in the interpreter called python and it is
telling you that
Try this.
>>> python = "A cool language"
>>> python
'A cool language'
>>> dir()
['__builtins__', '__doc__', '__name__', 'python']
>>>
btw: dir() is a way of getting the currently defined names
you could also try this - just to get a feel for the names
you can also request the names going down the heirarchy.
enter:
dir(__doc__)
and see what happens.
Happy Pythoning.
John & Mary Cook wrote:
> I just installed Python on Windows XP Pro. When I enter 'python' at the >>>
> prompt in Pythonwin IDE I get the following:
>
> Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> Name Error: name 'python' is not defined
>
> Can anyone help?
>
> Thank you,
>
> J. T. Cook
More information about the Python-list
mailing list