All ChallengesLoading...
Not Solved
Count occurrences of each character
Write a function that takes a string and returns a dictionary with each unique character as the key and its number of occurrences as the value.
Intermediate
sample input: hello
sample output: {"h": 1, "e": 1, "l": 2, "o": 1}
Loading...
Test Output: