help plz (will give brainliest)

Help Plz (will Give Brainliest)

Answers

Answer 1

Answer:

The answer to this question is given below in the explanation section.

Explanation:

This is the python program in the question that is:

def sum(n1,n2):

n=n1+n2

return n

The question is: write a function CALL that displays the return value on the screen.

So, the correct program is written below:

*********************************************************************  

def sum(n1,n2):# it is function that define sum

 n=n1+n2 # variable n that store the result of n1 and n2

 return n # return the result

print(sum(3,5))# call the sum function with parameter 3 and 5 , it will print 8

print(sum(4,101))

# call the sum function with parameter 4 and 101 it will print 105

********************************************************************************

you can also store the sum result into another variable, because this function return the sum. So, you can store that return value into another vairable and using the print function, to print the value of this variable such as:

*****************************************************************************

def sum(n1,n2):# it is function that define sum

n=n1+n2 # variable n that store the result of n1 and n2

return n # return the result

result= sum(6,9) # store the sum result into another variable i.e result

print(result)# print the result variable value

*****************************************************************************


Related Questions

answer this now
and thanks

Answers

Answer:

the process of burning something

Answer:

Option D) the process of burning something

Explanation:

Combustion, or burning, is a high-temperature exothermic redox chemical reaction between a fuel and an oxidant, usually atmospheric oxygen, that produces oxidized, often gaseous products, in a mixture termed as smoke. 

If you would like to compare information on two different Web pages, you should _____.
scroll through the pages
the home page
use tabs
organize bookmarks

Answers

Answer:

Use Tabs

Explanation:

I had this lesson on odyessy ware and this was right the other guy is wrong

Answer:

Use Tabs is also correct on Edge nuity

Explanation:

i have Keyboarding and Apps

Other Questions
Which technique is a writer most likely to use in the resolution of.a narrative? Solve each equation mentally for x.5/2 x = 1Your answer must be in the form of a fraction. Is this a function??? An 80 gram sample of a radioisotopes decayed to 40 grams in 3 days how many grams of the original sample would remain after 9 days I need help with this question.Pls help. . What is the velocity of a free-falling object after 5 seconds?(Use 10 m/s2 for gravity.) Please helpp!!A model car is for sale online. The owner discounts the price by 5% each day until it sells. On the third day, the car sells. If the original price of the model car was $40, how much did the car sell for to the nearest cent? What percent discount does this represent from the original price? Round to the nearest whole percent. True or false - DNA and RNA store heredity to make proteins? i have the coronavirus Which of the following numbers is between 0.40 and 0.47?A) 7/50B) 19/50C) 21/50D) 43/50 Legal codes protecting private property are most commonly associated with which modern system? How did the Mongol empire build upon or transform the societies and relationships that prevailed before the Mongol movement? In what ways did Mongol rule stimulate the changes that emerged following the Mongol movement? determine the slope of the table What led to the development of labor unions in the 1800s?conflicts between corporations and workers over wages and working conditionsBconflicts between the government and corporations over regulations and taxesconflicts between businesses over the formation of monopolies and trustsDconflicts between workers over competition for limited jobs in urban centers What is Fortunato's expertise? 4,000000000010,00000000 please HELP MEEEEEEEEEEEEEEE What is the name of the compound with the formula LiNO3? level 2 record the letters in your triangle from left to right SOMEONE pLZ HELP ME SOLVE THIS IM GETTING so MADDD