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 definition of control
5. Notice & Note Reread what the goldfish tells Sergei in paragraph 22. What lesson is this archetypal wise character trying to convey? How does thistesson
1. Two angles form a linear pair. The measure of the larger angle is four times the measure of the smaller angle. What is the larger angle's measure?
Write about something that would make you feel happy? Explain it. I chose success but I don't know how to elaborate it. Could anyone help me? ​
Whats 3x-8=4 this is a multistep equation
Can someone give me an example of Newton’s first law of motion PLEASE HELP !
What is theme(2 points)
3(x+6)+2x-5=-2(x+1)+10
Fabienne rolls a ball 72 inches across the floor. This is 9 times the distance that Olivier rolls his ball across the floor. Let n represent the number of inche
What is the volume of the figure? Enter the answer in the Box. In cubic centimeters