Challenge
It is time for the first full-filled task! Follow the small instruction to cope with everything.






Good luck!
Tarefa
Swipe to start coding
The mean value of a set of numbers is equal to its sum divided by the amount. Here, you have rates of 3 apps that your company has created; calculate the mean rate of all apps. Follow the algorithm:
- Calculate the sum of rates of apps.
- Calculate the mean value of rates.
Solução
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
app1 = 4.9
app2 = 4.5
app3 = 5
# Calculate the sum of rates of apps
sum_rate = app1 + app2 + app3
amount = 3
# Calculate the mean value of rates
mean_value = sum_rate/amount
print("The sum of rates is:", sum_rate)
print("The mean value is", mean_value)
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 4
single
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
app1 = 4.9
app2 = 4.5
app3 = 5
# Calculate the sum of rates of apps
sum_rate = ___
amount = 3
# Calculate the mean value of rates
mean_value = ___
print("The sum of rates is:", sum_rate)
print("The mean values is", mean_value)
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo