0
Function definitions
Which line is wrong? def ann(): print "go ann!" def re_ann(): ann() ann() re_ann() I want to get the result as follow; "go ann!" "go ann!" How can I fix it ? Help me out :)
5 odpowiedzi
+ 2
what output are you getting? with that code you should get "go ann!" printed twice. depending on the python version you migth want to use print("go ann!") instead of print "go ann!", but the rest should be ok.
0
you call only ann () for 2nd.you don't make metode for it.or repeat again print to ann () for 2nd.you.
0
Yes I got answrer .
But i dont know why I should put bracket() after print.
-0-
In this case
def hello():
print "nice to meet you"
hello()
The result of print works;;;;confusing
0
you can't use hello () to owen hello method. ..thou can use outside method it.
0
Thank you guys :) it helps me a lot. ~