Function Definition And Function Call


☞ Structure of a Python program using functions

def  <function_name 1>( ):
	……..

def  <function_name 2>( ):
	…….
 
#__main__ program(top level statements)
<function_name 1>( )     #function call/invoking a function
<function_name 1>( )     #function call/invoking a function

☞ Let see an example to understand this concept :

#following 5 lines are function definition
def  add( ):
	a=5
	b=6
	c=a+b
	print(c)

#__main_program
add( )	#function call/invoking a function