Checkpoint 10.9.1.
Create a function
letter_dict
that takes in string
as a parameter and returns a dictionary containing the amount of times letters appear in the given string
. For example, letter_dict('It is')
should return {'i': 2, 't': 1, 's': 1}
. (Note: Pretend the string
doesn't have any punctuation besides spaces.)