Computer Science, asked by kreezyk14, 5 months ago

Program in python: You are given some words. Some of them may repeat. For each word, output its number of occurrences. The output order should correspond with the input order of the appearance of the word. See the sample input/output for clarification.

Note:
All the words are composed of lowercase English letters only.

Input Format
It should contain all the words separated by space.

Output Format
Output the number of distinct words from the input
Output the number of occurrences for each distinct word according to their appearance in the input.
Both the outputs should be separated by space.

Answers

Answered by akashkumar100dav
2

Answer:

if you follow then I follow also

Similar questions