結果 : write code to calculate frequency of characters in a string in python