Python Functions Tutorial (article)
In python a function is a group of related statements that perform a specific task. functions help break our program into smaller and modular chucks,as our program grows larger,function make it more organized and manageable.it avoids repetion and make code reusable.
Syntax
def function name(parameters):
statements(s)
Example
def test(name):
print("Welcome" + name)
Functions Call
test('Bharat')
Welcome Bharat
I hope this tutorial helped you Python Functions Tutorial. As always, if you found this post useful, then subscribe to our free newsletter. You can also follow us on Google+, Twitter or like our Facebook page.
0 comments:
Post a Comment