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

Help pls this aint physics.
The perimeter of a rectangle is 320 feet. Find the length and width if the length is an odd integer and the width is 5 times the next consecutive odd integer.
A laboratory experiment produces a double-slit interference pattern on a screen. If the screen is moved farther away from the slits, the fringes will be.
how do you solve this?
Ethical dilemmas raised by dna technology and knowledge of the human genome include?
A customers monthly bill is $50 including taxes. You mom ’ll offer a 30% discount applicable towards the $50 on a monthly basis. The discount started being appl
How can you use word components to relate medical terms to the structure and function?
WS= Help me please thanks so much :) I appreciate it
Christmas music in latin america today is likely be the same music used in the u. s. to entice shoppers at holiday time. a. True b. False
The law of supply states that as the price of a good declines, the quantity supplied of that good remains the same. decreases. increases. disappears.