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

Discount Rental Cars charges a daily fee plus a mileage fee for renting its cars. Barney was charged $145.00 for 3 days and 310 miles, while Mary was charged $2
¿ vas a llamar el taxi? A. Sí, voy a llamar B. Sí, voy a llamaria C. Sí , voy a llamar el taxi
if you could create your own website on any topics at all what would it be in brainly?write about why you choose this topics what the website would contain and
Solve 5(x + 1) = 5(x + 5) − 15 .
When I am divided into 22, the remainder is one. When I am added to 5, the answer is an even number. What number am I?
Please answer!!! Number 3-6 !!! Use the examples they have at the top to answer! Has to be that method
what are the coordinates of E' after a dilation of 1/4 about the origin? the coordinates for E is (-2,-2).​
After the discussion, what does the author of "On Writing Well" feel the students have learned about writing? O A. That everyone writes differently and there i
what are the coordinates of E' after a dilation of 1/4 about the origin? the coordinates for E is (-2,-2).​
what three issues did europe face after the war