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
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
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
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.
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