Skip to content

Python code snippet – How to see How many times somting is in a list ?

vowels = ['a', 'e', 'i', 'o', 'i', 'u']
count = vowels.count('i')
See also  Python code snippet - How to count the occurrence of a word in string ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.