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

Got three questions need with .
Awareness of the ________ linking overseas production with US consumption has led some to be concerned with the working conditions in the Asian factories in whi
How does the passage expand on the central idea "large numbers of Elizabethans died from illness and disease"? Serious though influenza and malaria are, they ar
[tex]8(x + 6) = 9x + 8[/tex]​
How does cutting down only mature trees in a forest extend the life of the forest? A. It maintains forest habitats. B. It start a new generation of trees. C. It
Part ACHACHACHCH,CO K+CH,CHSpell out the full name of the compound.​
Identify which value represents the sample mean and which value represents the claimed population mean.A) American households spent an average of about $52 in 2
Question 5 of 10 2 Points W. E. B. Du Bois became a supporter of as he got older. O A. McCarthyism O B. Communism O C. Fascism O D. segregation SUBMIT
Find the missing number so that the equation has infinitely many solution -2x-10=-2x+
what is the meaning of nasionalism?​