Python Functions

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
							
							
Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!