Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def majority(list):
- a = len(list)
- for i in list:
- if list.count(i) >= (a/2) +1:
- print(int(i))
- else:
- print("None")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement