Define the get_word_len_dict() function which is passed a stringof text
as a parameter. The function returns a dictionary with keys whichare
integers and corresponding values which are lists of unique words.The
list of words corresponding to a key contains all the unique wordsfrom
the text that have a length equal to the key value. Thecorresponding
lists of unique words should be in sorted alphabetical order.
Note: the testing code makes use of theprint_dict_in_key_order(a_dict)
which prints the dictionary pairs in sorted key order.
For example, the following code:
text = “May your coffee be strong and your Monday beshort”
the_dict = get_word_len_dict(text)
print_dict_in_key_order(the_dict)
print()
text = ‘why does someone believe you when you say
PayPal Gateway not configured
PayPal Gateway not configured