'''
Pretty print of a dictionary

This is helpful when you want a cleaner display of the items in a 
dictionary than what print() provides.
'''

import pprint
message = 'It was a bright cold day in April, and the clocks were striking thirteen.'
count = {}

for character in message:
    count.setdefault(character, 0)
    count[character] = count[character] + 1
    
pprint.pprint(count)
d77c53a812d1211ce283d1cf8aa1ef7684b4d62e
<mask token>

<mask token>
for character in message:
    count.setdefault(character, 0)
    count[character] = count[character] + 1
pprint.pprint(count)

<mask token>
message = (
    'It was a bright cold day in April, and the clocks were striking thirteen.'
    )
count = {}
for character in message:
    count.setdefault(character, 0)
    count[character] = count[character] + 1
pprint.pprint(count)

<mask token>
import pprint
message = (
    'It was a bright cold day in April, and the clocks were striking thirteen.'
    )
count = {}
for character in message:
    count.setdefault(character, 0)
    count[character] = count[character] + 1
pprint.pprint(count)

'''
Pretty print of a dictionary

This is helpful when you want a cleaner display of the items in a 
dictionary than what print() provides.
'''

import pprint
message = 'It was a bright cold day in April, and the clocks were striking thirteen.'
count = {}

for character in message:
    count.setdefault(character, 0)
    count[character] = count[character] + 1
    
pprint.pprint(count)