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

Show me how to do 1.2÷ 1.5 I need this answers now
PLEASE HELP QUICK I need help with the page
A bowl of m and m, Italian dressing, and blueberries muffins are all examples of... Homogeneous mixtures Elements Compounds Heterogeneous mixtures
there are 11 pieces of pie left over in the cafeteria. if 6 pieces are apple and 5 are cherry, what fraction of the remaining pieces are apple
4. What is eco-tourism?
Marcus threw a baseball at at his teammate witch best identifies the voice of the verb in this sentence A.subjunctive B.indicative c.passive voice D. active voi
steps for aerobic respiration
The question is In the book The Old Man and The Sea by Ernest Hemingway what does it mean when the old man says " Man is not much besides the great birds and th
WILL GIVE BRAINLIEST ANSWER ASAP PLEASE HURRY A geometric sequence is represented by an=a1r^n-1. What is the fifth term of a geometric sequence where a1=4,096 a
when marcus garvey was in his twenties he toured central america and witnissed the oppression of migrant workers an experience that