AberdeenAngus

count function

Aug 26th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. def count(num,scores):
  2. count = 0
  3. for i in scores:
  4. if i == num:
  5. count+= 1
  6. return count
Advertisement
Add Comment
Please, Sign In to add comment