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

The function of the eardrum in the middle ear is to
What were the major causes of WWII? Please include at least 4 answers.
what is a high structure part of a church which has 5 letters
What is the amplitude of y=1/2 sin2x
how do you write 4540 million in standard form?
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
What were the major causes of WWII? Please include at least 4 answers.
How do you?...Multiply out and simplify 10(2x-1)-20x?
How do you?...Multiply out and simplify 10(2x-1)-20x?
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot