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
Science,
1 month ago
Computer Science,
1 month ago
Physics,
2 months ago
Math,
8 months ago
Physics,
8 months ago