output of the code
def sum(x, y):
return(x+y)
print(sum(sum(1,2), sum(3,4)))
Answers
Answered by
2
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
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Physics,
5 months ago
Math,
11 months ago
Physics,
11 months ago