I have a dictionary of lists of integers. I want to build a new dictionary with the same keys, but where each number of each list is mapped to a letter in the alphabet. 0 is A, 1 is B, etc.
oldDict = {
'code_1': [2, 0, 19],
'code_2': [3, 14, 6],
'code_3': [0, 11, 11],
'code_4': [13, 0, 15]
}
This is what I want
newDict = {
'code_1': ['c', 'a', 't'],
'code_2': ['d', 'o', 'g'],
'code_3': ['a', 'l', 'l'],
'code_4': ['n', 'a', 'p']
}
How would I be able to do this?