0

You're given an string S. write a program to count the number of occurrence of alphabet from string Example

Input

abcabc

Output

{'a': 2, 'b': 2, 'c': 2}

Input Format

The first line contains string S

Constraints

No constraints

Output Format

Print dictionary

Sample Input 0

caddesign

Sample Output 0

{'c': 1, 'a': 1, 'd': 2, 'e': 1, 's': 1, 'i': 1, 'g': 1, 'n': 1}
Ch3steR
  • 19,076
  • 4
  • 25
  • 52
  • Consider using [`collections.Counter`](https://docs.python.org/3/library/collections.html#collections.Counter): `from collections import Counter; print(dict(Counter("abcabc"))) # => {'a': 2, 'b': 2, 'c': 2}` – Sash Sinha Dec 04 '21 at 15:36

0 Answers0