def problem

Emile van Sebille emile at
Sat Feb 10 19:34:35 CET 2001

It must be in the way you're running it.  When I run it
here, I get pretty much what you'd expect:

bye bye

If you give us some info on how you're trying to do this, we
should be able to get you going.


Emile van Sebille
emile at

<clickron at> wrote in message
news:10844-3A8572B2-38 at
> I write this, save it. and run it.
> def hello():
>       print "hello"
>       print "bye bye"
> hello()
> and I get this message
> hello
> Traceback innermost last):
> File "<pyshell27>",line 1, in ?
> hello
> NameError: There is no variable named 'hello'
> What am I doing wrong?
> Ron

More information about the Python-list mailing list