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

what is the sum of 7/10 and 6/100
having troubles with inequalities.. 3.8x + 14.5 < 32
what is the sum of 7/10 and 6/100
Explain what is the same about two fractions that are like fractions
which trinomial is equivalent to (3x-1)(x+4)
which trinomial is equivalent to (3x-1)(x+4)
Explain what is the same about two fractions that are like fractions
what is the sum of 7/10 and 6/100
having troubles with inequalities.. 3.8x + 14.5 < 32
having troubles with inequalities.. 3.8x + 14.5 < 32