Given:
ascii_dict = {'A': 65, 'B': 66, 'C': 67, 'D': 68}
Expected Output:
{65: 'A', 66: 'B', 67: 'C', 68: 'D'}
Solution:
ascii_dict = {'A': 65, 'B': 66, 'C': 67, 'D': 68} # Reverse mapping new_dict = {value: key for key, value in ascii_dict.items()} print(new_dict)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer