Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This program counts the number of learners who scored 0 to 10 marks
- import random
- import matplotlib.pyplot as plot
- def count(x, lst):
- count = 0
- for num in range(len(lst)):
- if lst[num] == x:
- count += 1
- return count
- scores = []
- chart = []
- for x in range (0, 30):
- scores.append(random.randint(0, 10))
- print (scores)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement