Back
You can count() method in Python:
>>> [1,1,2,3,5,6,8,6,3,2,4].count(3)Output: 2
>>> [1,1,2,3,5,6,8,6,3,2,4].count(3)
Output: 2
Hope this answer helps you!
31k questions
32.8k answers
501 comments
693 users