Question: Write a python function that takes a string as input, and returns a dictionary of frequencies of all the characters in the string. For example:
Write a python function that takes a string as input, and returns a dictionary of frequencies of all the characters in the string. For example:
freq("dabcabcdbbcd") would return {"d":3, "a":2, "b":4, "c":3}. Then write a driver to demonstrate your function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
