whyyoubullyme81
whyyoubullyme81 whyyoubullyme81
  • 20-11-2020
  • Computers and Technology
contestada

Finish the code of the function that finds the average of two numbers.
def ave(a, b, c):
sum = a + b + c

____ sum / 3

num = ave(3, 5, 10)
print (num)

Respuesta :

Cytokine
Cytokine Cytokine
  • 20-11-2020

The missing word is return.

We type return inside of a function so as to "return" a result. In this case, the sum divided by 3 will be returned.

Answer Link
vitalyc123 vitalyc123
  • 20-04-2021

Answer:

return

Explanation:

good luck on your unit test

Answer Link

Otras preguntas

Which of the following might be affected by the loss of a plant species? a. Only organisms that feed directly off the lost plant species will be affected. b. O
Explain why people are interested in inspirational movies,videos,and stories. Why do these movies,videos, and stories make money for the producers and authors?
True or false the length of a degree of longitude is the same as any latitude
Explain how you would calculate the ecological footprint of the state that you live in if you knew the average ecological footprint of a resident in your state?
The best reason why direct democracy would not work well in the United States is that it would be impossible to get each and every citizen to vote. the nationa
Can the product of a whole number and a decimal number less than 1 ever be greater than a whole number
One fourth on a number n in algebraic expressions
how to simplify 9m+4 (12-m)
whats 6.78 rounded to the nearest tenth
what kind of data would you need to collect to carry out this experiment?