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 first step in the five-step process for problem solving is to ____. evaluate take action understand the task or need complete the task
HELP I'LL GIVE YOU 15 POINTS CAUSE THAT'S ALL I'VE GOT, BUT I NEED IT PLEASE! All mixtures: contain only one kind of atom are heterogeneous are homogeneous may
write the ordered pairs of the relation.
what is the equation of the line?​
Which famous singer is in the picture?​
which one is an example of information that is appropriate to include cover letter?
Math Can someone please explain what I need to do here to find answer? Thanks
What is commonly chewed at the end of the meal in india to aid in digestion and freshen the breath?​?
Identify the cartoon type. Jack created a cartoon of Tim. In which he highlighted Tim's long nose and lanky frame. Jack has made a [_______] cartoon
Will someone answer these questions for me bkuz its for health and I cant answer them.