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

explain why the nucleus of an atom carries a positive charge
Chlorine gas reacts with aluminum metal producing aluminum chloride. What mass of chlorine reacts with 9.00g of Al to form AlCl3
When making a turn at an intersection where there are two or more lanes in each direction, you must?
What is one of the most important rules to remember about healthy eating? A. Eat only low-fat, low-salt foods while training. B. Eliminate snack foo
What is the best time to be tested for HIV A. Immediately after exposure B. Two to three weeks after possible exposure C. Approximately 8 weeks after possible e
Multiply (3) x (-4) x (2).
When will salt become less soluble in water?
HELP ASAP PLEASE!!! Equal masses of water and alcohol, both at 25°C, are heated at the same rate under identical conditions. After 3 minutes the temperature of
Help please, will give brainliest to correct answer!
Please help I will reward brainly