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.
2 Respuestas
+ 3
Official JUMP_LINK__&&__Python__&&__JUMP_LINK Coder
Where is your attempts
+ 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