Log in
← All problems

Count each character

easyStrings10 XP

Return a dictionary (JavaScript: an object) that maps each character of s to how many times it appears.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 2 hidden tests.