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)))

24th Apr 2023, 2:25 PM
ARBEIT MANN
ARBEIT MANN - avatar
3 ответов
+ 1
text and letter are inputs, not fixed values.
24th Apr 2023, 2:45 PM
Lisa
Lisa - avatar
+ 1
input(), not "hello" or "l"
24th Apr 2023, 8:04 PM
Lisa
Lisa - avatar
0
Dont understand
24th Apr 2023, 7:59 PM
ARBEIT MANN
ARBEIT MANN - avatar