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

A business organization that has members is a(n)
Rome began to lose territory after the Pax Romana because itsd
Why were the British never able to securely hold the Carolinas? Colonial resistance was widespread in all areas. French allies led major battles to defeat the
There a r e 250 nurses. 100 are males. What is the ratio of male to female in lowest term
Describe the impact of the cold war on the civil rights movement
The employees of a company have different hobbies. 14 men who like playing golf 6 women who like playing golf 2 men who like running 18 women who like running W
_______________ point of view is rarely used because it is repetitive for the reader to constantly see the word "you" as the narrator. First person Second perso
given the two sets, which statement is true? A = {1, 2} B = {1, 2, 3, 4} a. B c A b. 3 c A c. 4 c A d. A c B e. none of the above
Which method of production was developed durning the second industrial revolution
What is the value of d? Assume that the line is tangent to the circle.