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