a E 0 Program 4: Dictionary and String Write a python code that takes a string as input and finds the frequency of each
Posted: Tue Jul 12, 2022 8:09 am
a E 0 Program 4: Dictionary and String Write a python code that takes a string as input and finds the frequency of each word in that string. Hints: Use appropriate string-handling built-in functions such as split() Sample Input/Output Input: Enter a string: Apple Mango Orange Mango Guava Guava Mango Output: frequency of Apple is : 1 frequency of Mango is : 3 frequency of Orange is : 1 frequency of Guava is : 2 Sample Input/Output Input: Enter a string: Train Bus Bus Train Taxi Aeroplane Taxi Bus Train Output: frequency of Train is : 2 frequency of Bus is : 3.