Parameterized Functions

Formal and Actual Parameters

def sum(x,y): 
	c = x + y
	print(c)


# calling the function
x,y = 10, 20
sum(x, y)

Default Parameters

def sum(x,y,result='addition :'): 
	c = x + y
	print(result,c)


# calling the function
x,y = 10, 20
sum(x, y)