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

19. Find the value of:4/3tan^2 30° + Sin^2 60° – 3Cos^2 30°+ 3tan^2. 60° - 2tan^2 45°​
Imagine rubbing a balloon on your hair or clothes and putting extra electrons on the balloon to give it a negative charge. If you touch the balloon to a wall, i
Two women share 60 eggsit the ratio 1 to 2. How many eggs does each recieves?​
Write equivalent fractions for 1 2/3 and 1 7/8 using 24 as the common denominator 2 24 7 1 0​
Air is made of nitrogen, carbon dioxide, and small amounts of other gases. What is the pressure of O₂, total is 1 atm if PN₂ = 593.4 mm Hg, PCO₂ = 3.0 mm Hg, an
A sphere has a surface area of 2,122.64 square meters. Which equation can you use to find the radius? 2,122.64 = 4pie r 2,122.64 = 4pier² 2,122.64 = 4(pier)2 2,
Determine if the equations are parallel, perpendicular or neither y = -3x + 6 and y = 1/3 x -8
A. Why do you think the royal buildings were so colorful and ornately decorated?
explain the importance of health education in 4 points​
The radius of the planet Saturn is 945% of the radius of Earth. What is 945% expressed as a fraction and as a decimal? PLZ HELP(don't send link and there no pho