def get_inverse_dict():
"""
returns a dictionary which maps a -> z, b->y ... z->a
Hint:
1. see the constants in the string module, and the zip builtin function.
2. google lookup extended slicing notation to create a z..a string from a..z string
In shell: help(zip) and experiment using zip in shell
In shell: import string to use the string.<> constants. we will learn about import later on.
"""
return None
def texst_get_inverse_dict():
result = get_inverse_dict()
expected = 122
for c in string.ascii_lowercase:
assert ord(result[c]) == expected
expected -= 1
i'm unable to understand what these functions are doing i need to insert piece of code to make that code work