Computer Science, asked by varunparkar111, 2 months ago

output of the code

def sum(x, y):
return(x+y)
print(sum(sum(1,2), sum(3,4)))

Answers

Answered by jai696
2

\huge\blue{\mid{\fbox{\tt{ANSWER}}\mid}}

Output will be 10

\huge\blue{\mid{\fbox{\tt{Explanation}}\mid}}

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

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions