#Python3.7 - Automate The Boring Stuff - Al Sweigart

import pprint

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

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

pprint.pprint(count)
#pprint.pformat(count)

#If you want to obtain the prettified text as a string value instead of displaying it on the screen, call pprint.pformat() instead
#pprint.pprint(someDictionaryValue) == print(pprint.pformat(someDictionaryValue))

6ae6db59a7270d0b7e260ac41386e5938935b379
<mask token>

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

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

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

#Python3.7 - Automate The Boring Stuff - Al Sweigart

import pprint

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

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

pprint.pprint(count)
#pprint.pformat(count)

#If you want to obtain the prettified text as a string value instead of displaying it on the screen, call pprint.pformat() instead
#pprint.pprint(someDictionaryValue) == print(pprint.pformat(someDictionaryValue))
