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 are the cells in the skin called that make hair? columnar epithelium cuboidal epithelium keratinocytes Award for why is so
A quadrilateral is a four sided polygon. True False
purpose of boiling chip
How did president george w. bush differ from the previous five presidents in his strategy for altering the executive bureaucracy?
select the expression that is equivalent to (x^4/x^5)^3 a. x/x^2 b. x^7/x^8 c. x^12/x^15 d. x^12/x^5
what’s the word for these definitions
Courts generally use the​ ________ when determining the value of human life in wrongful death suits.
When a person decides on a particular belief and then assembles data and arguments to back up his or her conclusions, that person is engaging in?
How did president george w. bush differ from the previous five presidents in his strategy for altering the executive bureaucracy?
What is the name given to the experimental apparatus for generating electricity?