teromakotero icon

Mean of test scores

teromakotero | PRO | 05/10/19 07:56:01 PM UTC | 0 ⭐ | 361 👁️ | Never ⏰ | []
Python |

220 B

|

None

|

0 👍

/

0 👎

import statistics
import random
 
test_scores = []
 
for i in range(30):
    score = random.randint(4,10)
    test_scores.append(score)
 
print(test_scores)    
print("Mean of test scores:",statistics.mean(test_scores))

Comments