Question: Design a program named CharDistribution.py , within this program, implements functions as specified below: charFrequency ( aString , aChar ) - this function counts number
Design a program named CharDistribution.py within this program, implements functions as specified below: charFrequencyaString aChar this function counts number of times the char aChar appears in aString. For example, calling charFrequencyHello hanson", h should return because char h appears in the String twice. We donot make difference between upper and lower cases. allCharFrequencyaStringit is OK if you have already implemented : allCharFrequencyaString aChar this function counts number of times of each of alphabetic letters appears in aString and return the frequencies as a element list. Again, we don't make differenec between lower and upper cases. printFrequencyfre where fre is the frequency of alphabetic letters. This function will print the frequency in the format as follows: A: # lette aA appears times B: # letter bB appears times
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
