def n_letter_dictionary(my_string):
    my_string = my_string.lower().split()
sample_dictionary = {}
for word in my_string:
    if len(word) not in sample_dictionary:
        sample_dictionary[len(word)] = set()
sample_dictionary[len(word)].add(word)
return sample_dictionary
Returning Dictionary-length of words in string