From the code given below identify the following parts.
def functionEx (x,y):
z=x+y
return Z
nol, no2=10, 20
res=functionEx (nol, no2)
identify these parts: Function header, function
call, arguments, parameters, function body, main program
Answers
Answered by
2
Function Header
def functionEx(x, y):
Function Call
res = functionEx(no1, no2)
Arguments
res = functionEx(no1, no2)
Parameters
def functionEx(x, y):
Function Body
def functionEx(x, y):
z = x + y
return z
Main Program
no1, no2 = 10, 20
res = functionEx (no1, no2)
Similar questions