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
The basic problem is you never told Python to DO anything except define what it would do if anyone asked it to. If you add the line "main()" to the bottom you'll get your message printed. 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

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.