+ 1
I need help
Vaccination report
10 Respostas
+ 3
Sum of terms/Number of terms = mean
+ 3
#I used mathematics to calculate it.
print((0*5+1*8+2*4+3*3)/20)
+ 2
To understand it easily, you can store all the data in a list
[0,0,0,0,0,1,1,1.....,2,2,2,2,3,3,3]
+ 1
Never(never is 0) =5people
so => [0,0,0,0,0]
Once( once is 1)=8 people
=>[1,1,1,1,1,1,1,1]
twice(twice is 2) =4people
=>[2,2,2,2]
3 times(3 times is 3)=3people
=>[3,3,3]
They all are stored in a variable
Like
a=[0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3]
#use loop to calculate
total=0
for i in a:
total+=i
print(total/len(a)) #for mean value
0
We have a report on the number of flu vaccinations in a class of 20 people.
It has the following numbers:
never: 5
once: 8
twice: 4
3 times: 3
What is the mean number of times those people have been vaccinated?
Output the result using the print() statement
0
U mean 5+8+4+3/4
0
(5+8+4+3)/4
0
I have not yet got to that stage
0
Plus I don't no what that means Simba
0
Thanks bro