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

4. Hieroglyphics originated in: A Iraq B Iran C Mesopotamia D Egypt​
The half-life of carbon 14 is 5730 years. If a 1-gram sample of old carbon is 1/8 as radioactive as 1-gram of a current sample, then the age of the old sample i
( a^5 ⋅ 2^3 )^3 = ? Please help and explain.
What is the equilibrium expression for 2SO3(g) 0₂(g) +2SO₂(g)
The discreteness of energy levels is best understood by considering the electrons to be?
Why is it important to maintain the ph of blood and tissue fluids within normal limits? check all that apply
graphs of exponential functions
Sean is a monopolist who operates a business rigging tablets to run twice as fast as the original specifications. If sean charges $40, he would have 10 customer
Sample response: the author uses second-person point of view in this text by addressing the reader directly. the consequences listed for the felony of theft of
Graph y=8.5x PLS VERY URGENT ANSWER QUICKLY!!!!!!!!!!!!!!!!