- A E 0 Program 4 Dictionary And String Write A Python Code That Takes A String As Input And Finds The Frequency Of Each 1 (104.03 KiB) Viewed 33 times
a E 0 Program 4: Dictionary and String Write a python code that takes a string as input and finds the frequency of each
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 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
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.