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

How can nationalism help and hurt people?
Select the correct answer. Changing the variables to periodize a program can be done by any of the following except: A. Changing the rest period B. Changing t
Assessment: Solve Me!1 1f the diameter of the sphere in number 1 figure above is 8 cm, then itsradius risa) 12 cmb) 4 cm c) 8 cmd) 16 cm2 The cone in number 2 a
I need to find the value of y. how do I do that?​
20 points on how globalization is good for the triple bottom line​
What is the fastest thing known on Earth​
A group of words with a subject and verb that does not express a complete thought is called a(n) .
HELP NEEDED IMMEDIATE PLEASE AND THANKS :)
SS.8.A.2.3 TUESDAY AND WEDNESDAY Differentiate economic systems of New England, Middle and Southern colonies including indentured servants and slaves as labor s
What positive effects did the factory system have on women?