Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # We need to build a list (called performance) 1st element will be how many 0's in score
- # 2nd element will be how many 1's and so on
- for i in range(11): #i will run from 0 to 10 (these are the valid score values)
- #use count_items function to see how many matching scores we have
- this_score_tally=count_items(i, scores) #1st time round loop, i will be 0, next time 1 etc
- performance.append(this_score_tally)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement