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

A 5.67-kg block of wood is attached to a spring with a spring constant of 150 N/m. The block is free to slide on a horizontal frictionless surface once the spri
Look at the picture and answer math asap!
what is a chain sequence of amino acids that is the foundation for the basic structure of protein
usett =3.14 find the circumference and area of a circle d =7cm​
Questions: 1. Why does Jonas flee the community with Gabriel? 2. What rules did Jonas break when fleeing the community? Questions for The Giver.
Find the length of each side of the polygon for the given perimeter. P= 60in. Find the length of each side.
To what other groups did Zinn compare the treatment of women? Why?
what are the environmental impact on food transport ​
a compact disc stores music in a coded pattern of tinypits 10^(-7) m deep. the pits are arranged in a track thenspirals outward toward the rim of the disc; the
If a transmitter uses a signal power of 2 Watts that can be reliably received within a distance of up to 3miles, what is the lowest amount of signal power that