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

How can I solve this?
Name the structure that the arrow points to. Flower A. Petal B. Sepal C. Anther D. Style
Which statement states a requirement for a person to become a naturalized U.S. citizen? A being at least 18 years of age B having one parent who is a natural-b
Pls help if u cannnnnnnnnnnnnnnnn
Match each event to the likelihood of its occurrence. rolling a six-sided die and getting a 7 randomly selecting a girl from a team of 14 boys and 4 girls rando
F.R.E.E. P.O.I.N.T.S
HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I
PLEASE HELP ME!!! THIS IS 8TH GRADE ALGEBRA!!
Write in scientific notation:673,000
What is the mean? -4 -3 0 -4 -3 0