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

Samira ran 3 more miles than twice the number of miles Ada ran. Which statement makes this comparison using the correct variable expression? If Ada ran m miles,
Please help explanation if possible
If you walk 800m north, 600m east, and 200 meters south at a speed of 1m/s. What is your velocity?
1. Protecting wood How can we help wood surfaces resist weathering, especially when restoring historic wooden buildings? In a study of this question, researcher
Find the measures of two supplementary angles if the measure of one angle is 6 less than 5 times the measure of the other angle.
The graph below shows the total costy (in dollars) of owning and operating a compact car where x is the number of miles driven. Owning and Operating a Compact C
What was the order of the domino effect?
What role did the revolution playin in the US building the Panama Canal?
5. A car stops in 20 m. If it has an acceleration of-6m/s?, how fast was it going before you started slowing down?
20 points can someone help?