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

Why is it important for credibility that immigration statistics on the US State Department’s website are updated regularly? ⚪
Darron loves his career because it mostly fits in his lifestyle. He likes how he makes a lot of money and stay very busy while at work. He also likes that he tr
A new vaccination is being used in a laboratory experiment to investigate whether it is effective. There are 218 subjects in the study. Is there sufficient evid
1 is a cube a prism?​
What is the quotient? 2 1/5 over -1/10
PLEASE answer pic provided
halfway through the fourth year , harrys collection contains 400 pennies. study the graph provided at the beginning of this activity. find the point that repres
Which transformation(s) can map TriangleMNQ onto TrianglePQN? translation only reflection only rotation, then reflection rotation, then translation
A dot density map uses dots to show the number of people living in a certain area. ratio of land to water in a certain area. types of resources in a certain are
At 7 o’clock the coffee was made and the frying-pan was on the back of the stove hot and ready to cook the chops. Jim was never late. Della doubled the fob chai