19
Jun

Python Program: Frequency of words

Question:
Write a program to compute the frequency of the words from the input. The output should output after sorting the key alphanumerically.

Program:

Explanation:

The sort() method sorts the elements of a given list in a specific order – Ascending or Descending.

Output: