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

Find the distance between points l and m then find the distance between points l and n which distance is greater howmuch
Describe changes in education/learning that have impacted you positively and/or negatively during the pandemic
How did the outcome of World War Il contribute to the rise of the Cold War?
The shadow banking system refers to:______. a. Non-bank financial firms that acted as banks by borrowing and lending of U.S. Treasury bills in an effort to make
FLVS world history 5.08 exam how does this map show that Europe has changed greatly since the 17th century
Determine if the sequence An is convergent. If the sequence is convergent, state its limit. If the series diverges, mark the sequence as either Divergent or Div
Tristan wanted to know how much of his CPU speed was used was being used so he collected the following data over 2.5 minutes which graph matches his data
can someone help?? 3/5
What is most clearly a disadvantage of living in a world dominated by the presence of televisions, according to Neil Postman? A. Viewers compare their personal
Match the questions to their correct answers. pls help 20 points tyyy