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

In the mid-1800s, people who helped runaway enslaved people escape were called conductors. fugitives. helpers. railroad workers.
Label the place value 12,354.897
Answer Quickly : Define and compare boiling points, melting points, and freezing points.
Cellular respiration occurs in: a. animals only b. animals and plants c. plants only d. bacteria only
The history of a word is its _____. definition etymology pedigree
The root word boton- means: a. Animal b. Attach c. Baton d. Plant
What are the atmospheric layers?
what is 4/20 in simplest form
Who was the first explorer to Paraguay?
In the following sentence, which word is used as a coordinating conjunction? Lisa and Mary were home on time, but Kim, Francine, and Penny weren't going to mak