How can I write this ?? in python | Sololearn: Learn to code for FREE!


How can I write this ?? in python

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ıcan

2 Answers

New Answer


Have 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??


I’ll look it. This is in python data structures course.