[Tutor] execute a function
Sajjad
dosto.walla at gmail.com
Mon Sep 26 12:53:50 CEST 2011
Hello forum,
It has been two days that i have started with python and i am stuck with the
following simple issue:
i have created a python file and inside the file i have defined a function
as follows:
////////////////////////////////////////////////////////////
def greeting():
print "Welcome to python"
///////////////////////////////////////////////////////////
I am following the Book named - "Rapid GUI programming with Python and Qt"
In the book they mentioned that in the command line if i type
greeting() i should get the output "Welcome to python"
But i get nothing.
Any hint on this?
Regards
Sajjad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110926/788de7c3/attachment.html>
More information about the Tutor
mailing list