def problem

Emile van Sebille emile at fenx.com
Sat Feb 10 13:34:35 EST 2001


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

hello
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 fenx.com
-------------------


<clickron at webtv.net> wrote in message
news:10844-3A8572B2-38 at storefull-161.iap.bryant.webtv.net...
> 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