Skip to Content
Learn
Code Challenge: Dictionaries
Word Length Dict

word_length_dictionary()

Instructions

1.

Write a function named word_length_dictionary that takes a list of strings named words as a parameter. The function should return a dictionary of key/value pairs where every key is a word in words and every value is the length of that word.

Folder Icon

Sign up to start coding

Already have an account?