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

estimate for 412*5.904/0.195any one knw the estimate for this and how to work it out
Which sentence does not contain any errors? A. Fortunately, information on they're collars helped us locate the owners of the dogs.
what is chemical energy?
If a - 3= 7, then 2a - 14 =
A cone has a diameter of 8 cm. and a height of 4cm.   If the height doubles then the volume is: a) four times largerb) three times as largec) Twice as larged) T
could you tell me what is sputnik?
how do you convert mol dm-3 to gdm-3 and vice versa
can we store electricity from lightning?
Identify two ways of changing the strength of an electric force
Why Do We Sweat? Need some help