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 population of a city has increased by 32% since it was last measured. If the current population is 89,100 , what was the previous population?
What were the core beliefs for the trustee period?
Enter the equation of the circle described below. Center (-3, 0), radius sqrt 5
Anyone know how to solve this?
simplify 8 and 4 thirds
Mr. Brooks is buying a television set for $850. The sales tax is 6%. What will be the total amount he will pay for the television set after sales tax is include
Mrs . Tokala uses 9/10 of a can of coffee beans each week. how many cans of coffee beans does Mrs. Tokala use in 6 weeks? write your answer in two different way
A woman begins driving her car 25 km north of calgary. Some time later, the woman and her car are 100 km north of calgary. What is the distance and displacemen
High point and Low point of Alaska? And List the states it borders Please and thank you…..
What is four facts about the coastal plain region?