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

Babur defeated __________ in the year 1528 CE.
Outline the process your workplace implements for case closure or client exits.
How many one PGAL need ATP and NADPH
Outline the process your workplace implements for case closure or client exits.
underline the noun clause in each sentences chose the gift for whom ever you want​
For molecules of general formula ABn (where n > 2), how do you determine if a molocule is polar?​
identify the graph and the solution of the given system. 2x+3y=0. -3y=6-2x
can u give me the ans for this question
please answer the two questions
1. Phionah poured 100cm³ of water. Phionah later mixed 400cm³ of salt solution of density 1.6gcm3 in the water above. Determine the density of the mixture​