fawwazubaid205
fawwazubaid205 fawwazubaid205
  • 26-11-2020
  • Computers and Technology
contestada

The sales of last 6 months are stored in a list,
as follows
list1 = (12500, 35000, 12000, 40000, 55000,
60000]
How can you calculate the average sales?​

Respuesta :

Cytokine
Cytokine Cytokine
  • 26-11-2020

list1 = [12500, 35000, 12000, 40000, 55000,60000]

print(sum(list1)/len(list1))

We take the sum of all the elements in the list and divide the sum by the quantity of the elements. You can put however many elements in this list and you'll always get the average using the algorithm above.

Answer Link

Otras preguntas

biology sheet pls help
If Susan gained back more weight than she lost after she stopped a diet, the most likely cause is that she _____.
Use synthetic division to solve (x^3 + 1) ÷ (x – 1). What is the quotient?
what is the best way to look for a sufix
If the vice presidency becomes vacant how is a successor chosen
Why can you smell a candle from across the room.
What is term used to describe people who were unable to find work because they had been accused of Communist sympathies? A. Blacklisted B. Investigated C.
name two other nations that helped the patriot cause during the american revoulition
Succulent plants store water. Given this characteristic, which biome would they be best suited to live in? tundra desert freshwater salt water
An animal cell contains a nucleus and other organelles suspended in a watery solution that is encased in a flexible cell membrane. Which of the following physic