Character Frequency


Write a Python program to count the frequency of characters in a string and return a dictionary.
Sample String: 'arcticmonkeys'
Expected Result : {'c' : 2, 'a' : 1, 'e' : 1, 'i' : 1, 'k' : 1, 'm' : 1, 'n' : 1, 'o' : 1, 'r' : 1, 's' : 1, 't' : 1, 'y' : 1}

Your Sample Input Is: 'domecode'

Submit Answer

NOTE These questions can be solved in either Java , Python , Rust, C++, Go or ! However, the language intended for these questions is mentioned along with the question on the top. You need to submit the solution file for the autograder to grade the submission. If you are submitting in Java, make sure that the class name is Main (with a capital M)

Optional Python Editor for your use