Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- count=[]
- def count (list, max):
- ten= 0
- for score in high_scores:
- if score == max:
- ten= ten+1
- return ten
- count (list, max)
- from random import randint
- high_scores=[]
- for x in range (0, 30):
- high_scores.append(random.randint(0, 10))
- print(high_scores)
- print("{0} learners got top marks".format(high_scores))
Add Comment
Please, Sign In to add comment