Output of the code
def sum(x, y):
return(x+y)
print(sum(sum(1,2), sum(3,4)))
Answers
Answered by
1
Output will be 10
It will first evaluate sum(1, 2) which is 3, then evaluate sum(3, 4) which is 7 and then evaluate sum(3, 7) which is 10
Answered by
0
Answer:
Output will be 10
\huge\blue{\mid{\fbox{\tt{Explanation}}\mid}}∣
Explanation
∣
It will first evaluate sum(1, 2) which is 3, then evaluate sum(3, 4) which is 7 and then evaluate sum(3, 7) which is 10
Similar questions