words = ['be', 'is', 'are']
word_length = {word: len(word) for word in words}
print(word_length)
{'be': 2, 'is': 2, 'are': 3}
Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.