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

x^lg(x)=100^x find x
Which scientific term is defined as "the ability to use an applied force in order to move an object"? A.work B.motion C.kinetics D.energy
who did queen liliuokalanis policies threaten?
withdrawal symptoms from depressants can include ___________a. death.b. convulsionsc. both a and b
Select all that apply. According to the following Punnett square, the female genotype is _____. TT Tt tt homozygous heterozygous
why strong Army need for any country?
what is the value of the expression 4x−y2y x when x = 3 and y = 3?
what is 2/3 x 9/8 in simplest form?
What role did nationalism play in the outbreak of World War I?
steve and his brother used to work at the same organization. a few months ago their employer terminated them because the business had slowed due to slow economi