Source Code:
(back to article)
from collections import Counter string = "banana" count = Counter(string) print(count)
Result:
Report an issue