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

When two alleles "blend in" , or "mix" together it is known as - Incomplete dominance Codominance
Please help!! Place the events from earliest to latest !
Which items describe people’s interaction with their environment
What is the government of Japan requiring the people of Japan do?
can anyone please edit and correct this? Une ville que je voudrais visiter est appelé rocheport. Je voudrais visiter cette ville parce qu’il a apparemment un tr
Please help with number four I give brainliest thank you!
can yall please check capitalization? Ian finally beat uncle Bob at backgammon after four straight years of losing.
Write short notes on a. Transaction Processing System (TPS)
Which career do you think it would be most difficult to break into and why? subject: fashion and interior design
What is the slope and the y-intercept of the line on the graph below?​