for word in text.split():
    if str(len(word)) in result_dict:
        result_dict[str(len(word))].append(word)
return result_dict
Creating a dictionary where the key is an integer and the value is the length of a random sentence