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

Subtract ​​using the number line. −2/3−(−1 1/3) a) −1 2/3 b) −2/3 c) −1/3 d) 23
Both state governments and the federal government have the power to
Ovarian follicles cells produce estrogen, which is a steroid. What organelle will be present in abundance so that the follicles cells might perform this functio
Which body in the inner solar system has the densest atmosphere?
What was the most common impact of new inventions on american life?
At the center of every atom lies a small, dense ____________ that is positively charged HURRRRRRYYYYYYYYY 50PTS
2x +3y =6 Standard form to slope intercept form
One of the main elements of an epic poem is an extended metaphor. Which of the following characterizes an extended metaphor?
governmental policies of the colonies that help shape our Constitutional Republic today
How smart do you need to be to be a physisists?