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

Among members of George Washington's cabinet, __________ had a pessimistic view of human nature and a dread of democratic excess. A. Marshall B. Jefferson C.
how many tens in five hundred million
AC, DF, and GI are parallel. Use the figure to complete the proportion.BEADJBBC
The right to petition members of the government is contained in the _______ Amendment to the Constitution.
According to socialist theory, what contributed to the economic gap between the rich and the poor?
Write an integer to represent the final temperature. The day started out at 6 am as 32 degrees rose 24 degrees by noon and dropped 14 degrees at 6 pm
All living organisms are made from different combinations of only ___________ amino acids
What is 24÷689= show work
when a falling object reaches a speed called terminal speed, its speed is no longer unceasing. the object id loosing gravitational potential energy nut no kinet
What are examples of slow land changes