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

what percent of 49.2 is 25.83%
Given that the horizontal distance from the hoop to the free throw line (at point a) is 15 feet, how tall is the hoop? Round the answer to the nearest whole foo
"Find an integer, x, such that 5, 10, and x represent the lengths of the sides of an acute triangle. A. 4 B. 5 C. 6 D. 11"
A telephone company charges a fixed monthly rate plus a rate per minute of usage. The company charges $155 for 100 minutes of usage and $245 for 200 minutes of
List four things to look for when proofreading
What group of writers invented the nonfiction novel
who established the first comittee of correspondence in Boston in 1772 and why?
the unit for energy is the
Express these numbers in standard form: 1) 35.18 * 1000000; 2) 0.00000235 / 1000000
What is the length of missing side b in the figure below?