0

Anybody can solve this

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.

27th Jul 2021, 5:34 AM
Krish Khinchi
Krish Khinchi - avatar
2 Antworten
27th Jul 2021, 5:35 AM
A͢J
A͢J - avatar
+ 3
Official JUMP_LINK__&&__Python__&&__JUMP_LINK Coder Hint: Use count function to count letter in text. Use len function to get length of text Then get percentage using formula: (count / length) * 100
27th Jul 2021, 5:36 AM
A͢J
A͢J - avatar