0
can anyone help how to print average of a number in python?
4 Respuestas
+ 4
Karthik C
Divide sum() by the len()
list = [1, 5, 7, 8, 9]
print (sum(list) / len(list))
Many ways to get average
https://code.sololearn.com/cX128K6VeFps/?ref=app
+ 2
Karthik C
You can get average in many ways.
https://code.sololearn.com/cX128K6VeFps/?ref=app
+ 1
thank you