We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Count Characters

Character counts are the core of BookBot's analysis. We'll store them in a dictionary where each key is a character and each value is the number of times it appears.

To get accurate totals, we can convert all characters to lowercase with the .lower() method. That way uppercase and lowercase letters share one count. Spaces and symbols should also be included in the dictionary.

For example, "Boot!" produces:

{"b": 1, "o": 2, "t": 1, "!": 1}

Assignment

Run and submit the CLI tests from the root of your project.