windinthetrees windinthetrees
  • 02-04-2021
  • Computers and Technology
contestada

8. What's the output of this code?
1
def sum(x, y):
return(x+y)
print(sum (sum(1,2), sum(3,4)))

Respuesta :

HonoraryPhd
HonoraryPhd HonoraryPhd
  • 02-04-2021

Answer:

10

Explanation:

[tex]sum(1,2) = 3\\sum(3,4) = 7\\sum(3,7) = 10\\[/tex]

Basically, sum((1+2) + (3+4)) = sum(3,7) = (3+7) = 10

Answer Link

Otras preguntas

Which of these in-text citations are formatted correctly? Check all that apply. []Odysseus "addressed them sore at heart. (Homer 14)" []Odysseus "addressed them
Which expression is equivalent to 7(xy)? 7x+y 7x-y X(7y) Xy/7
14: On the first day of fall and spring, with the exception at the Poles, what happens to the length of daylight?
how can i simplify the algebraic expression: x^5*x^4
how does wiesel establish logos in the perils of indifference?
Which shows the equation y + 4 = 2(x – 1) written in standard form
Robert claimed 775 steps in 12 1/2 minutes how many steps did he average per minute?
Please help me pls ASAP
A ball dropped from a height of s feet takes t seconds to hit the ground, where t = . How much longerdoes the ball take to hit the ground when dropped from a he
What is the most important idea created by Hammurabi’s code