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

Write any two uses of the paint program​
pls help, i will give brainliest to correct answer
-"The Story of the Fisherman," Andrew Lange Which group of words from the passage appeal to sight? haul, trifle, and fortune carcase, rubbish, and mud family,
Hedging one commodity by using a futures contract on another commodity is called:________ a) surrogate hedging. b) cross hedging. c) alternative hedging. d)
If the temperature of a gas is increased from 20°C to 35°C, what is the new pressure if the original pressure was 1.2 atm? Assume that volume is constant. A. 0.
Participating in pi planning enables teams to gain alignment and commitment around a clear set of what?
A metallic taste in the mouth, epigastric distress, and possible nausea and vomiting are ingestion symptoms for which chemical agent?
If only 0.500 mol of NO2(g) is placed in a 1.0 L container and the reaction is allowed to come to equilibrium, 0.186 mol of N2O4(g) is formed. Find the value of
What is the estimate of the probability of being stuck by a train during your commute?
Three ropes A, B and C are tied together in one single knot K. (See figure.) If the tension in rope A is 50.5 N, then what is the tension in rope B?