solve the question and please give the answer
Attachments:
Answers
Answered by
1
Answer:
25
Explanation:
HOPE IT WILL HELP U!!!!!
Answered by
6
Answer :-
Output will be 25.
Explanation :-
The given program will generate an error as there are some indentation errors. Indentations are a must. The correct program will be:-
def power (b, p):
y = b* *p
return y
def calcSquare (x):
a = power(x,2)
return a
n = 5
result = calcSquare(n)
print (result)
The variable n is passed through calcSquare function which will find the square of n by using another function named power (both of these are user defined functions).
Square of 5 is 25 so 25 will be the output.
Similar questions