beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Character Count Dictionary

[email protected] // 1.0 // type-checkable

Write a function called character_count that takes a single string parameter and returns a dict of how many times each character in the string appears. For example, given "hello" you would return {'h': 1, 'e': 1, 'l': 2, 'o': 1}.