Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- from collections import Counter
- scores = []
- tens = 0
- for x in range (0,30):
- scores.append(randint(0, 10))
- for score in scores:
- if score == 10:
- tens = tens + 1
- print("Scores = ", scores)
- print("Leaners with Tens = ", tens)
- print("{0} learners got top marks".format(tens))
- print("List & number of scores = ", Counter(scores))
Advertisement
Add Comment
Please, Sign In to add comment