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

Identify the domain and range from the graphed exponential function. Question 1 options: Domain: All Real Numbers Range: y < -4 Domain: All Real Numbe
Express 0.68 as a percent.
Could someone please help
what would be 2 + 7x + 3 − 5x − 1 = ______ plz help
Write the equation log243(81) =4/5 in exponential form. A. 81^4/5= 243 B. 243 ^4/5= 81 C. (4/5)^81=243 D. (4/5)^243=81
Fill in the blank. Giraffe necks and mice necks have the same number of vertebrae, despite their different sizes and functions. This is an example of a(n) ___
According to the passage, how does a person increase the public wealth? a. By pursuing his own interests b. By voting for government regulation c. By investing
17. The country or Sudan is represented by which number? 1234​
what major events happened in the jurrassic period?
What is the range of the function f(x) = 2x +4 when the domain is {-2, 0, 3}?