0
How do I get the output to be 17
def count_frequency(text, letter): count = 0 for i in text: if i == letter: count += 1 return (count / len(text)) * 100 text = "hello" letter = "l" print(int(count_frequency(text, letter)))
3 Respuestas
+ 1
text and letter are inputs, not fixed values.
+ 1
input(), not "hello" or "l"
0
Dont understand