"""author: @pythonpips"""

"Hello, World!".count('o')
# outputs 2
How to Count Number of Occurrences of a given character in a String in Python

Subscribe to our newsletter