8. What's the output of this code?
1
def sum(x, y):
return(x+y)
print(sum (sum(1,2), sum(3,4)))

Answers

Answer 1

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


Related Questions

Other Questions
What is the spread of the data?A. 15 to 30 yearsB. 18 to 25 yearsC. 21 to 25 yearsD. 18 to 21 years If 10% of a number is 12 and 45% of the same number is 54, find 35% of that number. ENGLISH QUESTION HELP ME PLEASE Brainliest for correct answer asap Which situation(s) would be considered unethical design practices?Select all that apply.copying a design ideamaking false claims about a productdesigning a political campaignusing your own photographs Contour lines on a topographic map, connect lines with:Question 1 options:the same rock layersthe same height above sea levelequal slope moving away from the lineequal amounts of rainfallPLS NO LINKS I WILL REPORT YOUIF THE ANSWER IS RIGHT I WILL GIVE YOU BRAINLIEST In science, a hypothesis must be Toby found a $52 wallet on the clearancerack for 60% off. If sales tax is 6.25%, howmuch will he pay in total?A.$22.10B.$23.75C.$28.50D.$33.15 What is a challenge that forensic science faces in the future? Not enough cases Stalling technology Limited resources All of the above Read the sentence from Peking Dust.I tell you, the Chinese have the style of the world; the rest of us are but imitators.Which word has the closest connotation to imitators as it is used in the sentence?O trickstersreplicatespretenderscounterfeitsIll give brainliest (if thats how you spell it) to the correct answer i need help please this is quite hard for me are there any famous photographers who specialize in astrophotogarghy (dead or alive ) Garret is researching how eating breakfast impacts students overall performance at school.Which source is most likely to provide reliable, credible information?a vlog created by a high school sophomore about how eating breakfast improved her academic performancea newspaper article from 2019 on the effects of a government program funding heathy breakfasts in schoolsan infographic about using components of a specific diet program to make a healthy breakfasta website for a restaurant association providing healthy breakfasts in schools and workplaces Simplify fully125y2/10xy thank you for hurrying here is the very last one Explain how you would find the perimeter of this triangle. 10. El estudiante(smart)11. T (m)(white)12. Los primos(mean)13. Las bibliotecas(big)14. La banana(yellow)15. Las personas(German)16. La gente(Spanish)17. Katalina y yo (1)18. Lin y Caden (m)19. Los bailes(Italian)I(Japanese)(Chilean)(black)(short)20. El carro21. Celia y t (1)22. Las preguntas(easy)23. Yo (1)(important) i didnt mean to pick that but can some one please give me the answer :( Straight Arrow unloaded two tankers worth of toxic waste at a port in a foreign nation. Two hundred men and boys worked two days in their shorts and sandals to unload the barrels from the tankers for $5 a day. They were not told about the content of the barrels. Some observers felt that it was the obligation of not just the government, but also of Straight Arrow to ensure that no harm was done to the workers. These observers are most likely justice theorists. rights theorists. cultural relativists. utilitarianists. naive immoralists. Martin cycles at an average speed of 12mph. On Tuesday, he leaves his house at 9:15amand goes on a bike ride for 40 miles. What time does he arrive home? On a survey, 3 out of every 8 band members prefer listening to jazz music. Based on the survey, how many out of 240 band members would prefer listening to jazz music