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

The weight of an object is affected by gravity. Something that weighs 1 pound on earth will weigh 1.08 times that weight on Saturn. If a rock weighs 2 1/2 pound
Which equation represents exponential growth? O A) y= 2x O B) y = 3(5) OC) y = 4x? OD) y = 2(0.5)
Are both imperfect subjunctive forms used in Spanish?.
1. (a) Cause and Effect What caused people of ancient civilizations to murder and enslave others? (b) Cause and Effect What effect did the belief in an abundanc
A legion is a military unit that was once utilized by
please help!! 20 points!!
Pls help asap I’ll give brainliest!!!!!!!!
Kids 7 and under can eat free at Golden Coral Buffet. Which inequality describes the verbal description above?
If I throw a 10 kg ball with a force of 60 N, what will the ball's acceleration be?
Why are insertions and deletions called frameshift mutations?.