Numbered List
Completed
Read a line of words and print each as N. word, numbered from 1.
Input
One line of words.
Output
One line per word.
Example
Input
eggs milk bread
Output
1. eggs 2. milk 3. bread
Editor
Python
Hints
enumerate gives (index, item) pairs.
start=1 makes counting begin at 1.
Solution explanation
enumerate replaces the error-prone range(len(items)) pattern.
Show solution
for i, word in enumerate(input().split(), start=1):
print(f"{i}. {word}")