0

42.2 Python for beginners

Hello everyone. Help please. Itā€™s not work. Whatā€™s wrong here? def letter_count(text, letter): #Š²Š°Ńˆ ŠŗŠ¾Š“ text.count(letter) text = input() letter = input() print(letter_count(text, letter))

13th Jul 2021, 4:08 PM
Š›ŠµŠ¾Š½ŠøŠ“ ŠÆŠ½ŠŗŠµŠ²Šøч
2 Answers
+ 8
return text.count(letter)
13th Jul 2021, 4:11 PM
Simba
Simba - avatar
+ 1
print(text.count(letter))
13th Jul 2021, 4:46 PM
Shadoff
Shadoff - avatar