RE: [Tutor] What am I doing wrong...

2004-12-23 Thread Isr Gish
John Purser wrote: [snip] >I'm not sure if this is your code or my mail agent (outlook) but as you can >see below there's a space between the function name (main) and the >parenthesis. I don't believe that's supposed to be there. I don't think there is any problem with adding space befo

Re: [Tutor] What am I doing wrong...

2004-12-23 Thread Marilyn Davis
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

RE: [Tutor] What am I doing wrong...

2004-12-23 Thread John Purser
o: tutor@python.org Subject: [Tutor] What am I doing wrong... 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" When I do "python test.py" absolutely n

Re: [Tutor] What am I doing wrong...

2004-12-23 Thread Roger Merchberger
Rumor has it that Ken Stevens may have mentioned these words: 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" When I do "python test.py" absolutely nothing happens. Correct.

[Tutor] What am I doing wrong...

2004-12-23 Thread Ken Stevens
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" When I do "python test.py" absolutely nothing happens. I expect it to do the print statement. Thanks in advance for yo