Computer Science, asked by varunparkar111, 5 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
1

\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!

Answered by Japji21
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