A function gives name, specifies the parameters which are included in the function and structures have to be included in the blocks of code and function.
And the basic structure of a function is finalized, we can execute it by calling it from another function or directly from the Python prompt. For example you can see below following example to call printme() function
def printme( str ):
"This prints a passed string into this function"
print str
return;
# Now you can call printme function
printme("Findnerd function!")
printme("Again second call to the same findnerd function")
And Output->
Findnerd function!
Again second call to the same findneredfunction
0 Comment(s)