GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Sunday, December 19, 2010

Function In Python

Here's a simple Python Function:
>> def hello():
>>     print "Holla World"
>>     return 0;

To define function with parameter, use:
>> def addTwoNum( a, b):
>>     c = a + b;
>>     return c;
Share/Bookmark

No comments:

Post a Comment