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 widths of two similar rectangles are 16 cm and 14 cm. What is the ratio of their perimeters? Of their areas? a. 8:7 and 64:49 b. 9:8 and 64:49 c. 8 and 81-
Ryker is given the graph of the function y= 1/2x^2 - 4 . He wants to find the zeros of the function but is unable to read them exactly from the graph. Find the
which point lies on the graph of the boundary line of the inequality 3y + 4x< 12
what is the full definition of adaptation?
Help me please. What Is Stonehenge?
What is the next number of the pattern. 2 7 26 101 400
Why does more solar energy reach the equatorial regions than the polar regions?
Determine the type and number of solutions of 7x^2+3x+8=0
What is the World's Largest Rainforest?
what did Benjamin franklin feel strong about