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

Pete slid a domino off a bridge and it took 2.3 seconds to hit the Gully below how many feet did the domino fall
What’s the answer to #12? and why
How might the history of korea have been different if united nations forces had not stepped into oppose the north korean invasion in 1950?
What is the value of [(2/3)^0]^-3
which nutrition provides the highest number of calories per grama)fatb)proteinc) carbohydrated)suger
The chloroplast found within a photosynthetic protist is surrounded by four membranes. how can we account for this
The area of a rectangle is 55 m^2 , and the length of the rectangle is 4 m less than three times the width. Find the dimensions of the rectangle.
During translation, the mrna is read in groups of three bases. true false
When you prepare to make a left turn from a one-way road into a two-way road, you must:?
accounting i know that when there's two panels its debit and credit but what is the third for what is each one