Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # optimized_most_in_list.py
- k = [4, 2, 3, 2, 1, 1, 1, 2, 2, 4]
- most = max(set(k), key=k.count)
- print(most)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement