def add_to_letter_counts(d, s):
'''(dict of {str: int}, str) -> NoneType
d is a dictionary where the keys are single-letter strings and the values
are counts.
For each letter in s, add to that letter's count in d.
Precondition: all the letters in s are keys in d.
>>> letter_counts = {'i': 0, 'r': 5, 'e': 1}
>>> add_to_letter_counts(letter_counts, 'eerie')
>>> letter_counts
{'i': 1, 'r': 6, 'e': 4}
'''
for c in s:
if c in letter_counts.keys() ==True:
letter_counts[c] +=1
letter_counts = {'i': 0, 'r': 5, 'e': 1}
add_to_letter_counts(letter_counts, 'eerie')
letter_counts
ZGVmIGFkZF90b19sZXR0ZXJfY291bnRzKGQsIHMpOgogICAgJycnKGRpY3Qgb2Yge3N0cjogaW50fSwgc3RyKSAtPiBOb25lVHlwZQoKICAgIGQgaXMgYSBkaWN0aW9uYXJ5IHdoZXJlIHRoZSBrZXlzIGFyZSBzaW5nbGUtbGV0dGVyIHN0cmluZ3MgYW5kIHRoZSB2YWx1ZXMKICAgIGFyZSBjb3VudHMuCgogICAgRm9yIGVhY2ggbGV0dGVyIGluIHMsIGFkZCB0byB0aGF0IGxldHRlcidzIGNvdW50IGluIGQuCgogICAgUHJlY29uZGl0aW9uOiBhbGwgdGhlIGxldHRlcnMgaW4gcyBhcmUga2V5cyBpbiBkLgoKICAgID4+PiBsZXR0ZXJfY291bnRzID0geydpJzogMCwgJ3InOiA1LCAnZSc6IDF9CiAgICA+Pj4gYWRkX3RvX2xldHRlcl9jb3VudHMobGV0dGVyX2NvdW50cywgJ2VlcmllJykKICAgID4+PiBsZXR0ZXJfY291bnRzCiAgICB7J2knOiAxLCAncic6IDYsICdlJzogNH0KICAgICcnJwoKICAgIGZvciBjIGluIHM6CiAgICAgICAgaWYgYyBpbiBsZXR0ZXJfY291bnRzLmtleXMoKSA9PVRydWU6CiAgICAgICAgICAgIGxldHRlcl9jb3VudHNbY10gKz0xCmxldHRlcl9jb3VudHMgPSB7J2knOiAwLCAncic6IDUsICdlJzogMX0KYWRkX3RvX2xldHRlcl9jb3VudHMobGV0dGVyX2NvdW50cywgJ2VlcmllJykKbGV0dGVyX2NvdW50cw==