[Tutor] What am I doing wrong...

Marilyn Davis marilyn at deliberate.com
Thu Dec 23 18:55:10 CET 2004


Hi Ken,

Welcome to python!

Adding one line should do it for you:

On Thu, 23 Dec 2004, Ken Stevens wrote:

> I am a elative new comer to python. I wrote the following test
> snippet. 
> 
> #!/usr/bin/env python
> 
> def main ():
>     play_test()
> 
> def play_test ():
>     print "Hi! -- in play test"

main()


> 
> When I do "python test.py" absolutely nothing happens. 
> 
> I expect it to do the print statement.
> 
> Thanks in advance for your help.
> 
> Ken
> 
> 
> 
> 

-- 



More information about the Tutor mailing list