Answers for "counting each character in a string python"

10

count characters in string python

>>> sentence = 'Mary had a little lamb'
>>> sentence.count('a')
4
Posted by: Guest on December-30-2020

Code answers related to "counting each character in a string python"

Python Answers by Framework

Browse Popular Code Answers by Language