Easy
Length Dictionary
Read words and print a dictionary mapping each word to its length.
Input
One line of words.
Output
A dictionary.
Sample 1
Input
tea rice
Output
{'tea': 3, 'rice': 4}Sample 2
Input
a
Output
{'a': 1}Output appears hereOne line of words.
A dictionary.
tea rice
{'tea': 3, 'rice': 4}a
{'a': 1}Output appears here