teromakotero

Mean of test scores

May 10th, 2019
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import statistics
  2. import random
  3.  
  4. test_scores = []
  5.  
  6. for i in range(30):
  7.     score = random.randint(4,10)
  8.     test_scores.append(score)
  9.  
  10. print(test_scores)    
  11. print("Mean of test scores:",statistics.mean(test_scores))
Advertisement
Add Comment
Please, Sign In to add comment