You are making a program to analyze text. Take the text as the first input and a letter as the second input, and output the frequency of that letter in the text as a whole percentage. Sample Input: hello l Sample Output: 40 The letter l appears 2 times in the text hello, which has 5 letters. So, the frequency would be (2/5)*100 = 40.
4/11/2021 8:02:45 AM
Emre Sarıcan2 Answers
New AnswerHave a look at this. while there are multiple ways to do this, look at this solution. can you please tell me which course has this problem?? https://code.sololearn.com/ca2A1A10a106/?ref=app
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message