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

Today's baby boomers are often called the sandwich generation because
Please help me! WHO EVER HELPS WILL GET BRAINLIEST!!
Which of the following is most likely to be the best conductor of electricity? iodine neon silicon lead
_____________ are drugs that affect perception, sensation, awareness, and emotion. a. Stimulants b. Depressants c. Narcotics d. Hallucinogens
Math help pls? Picture attached.
What are the different types of dead? from the princess bride book
Which example shows how an assumption can cause a conflict?
What is the best English translation for dedicabantur?
what is the LCM of 72,86,32,34, and 30
Jane is in the third grade but reads at the level of a preschooler. Jane's teacher thinks that she reverses letters and may have _____.