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
2
Answer:
if you follow then I follow also
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Social Sciences,
2 months ago
Math,
5 months ago
Physics,
5 months ago
Math,
11 months ago