0
Hi guys, can someone help me in this code why is it not working properly ?
text = input() letter = input() frequency = ((len(letter))/(len(text)))*100 print(int(frequency))
2 ответов
+ 1
text.count(letter)/len(text)*100
+ 1
If you are find a letter frequency in word text then len(letter) is 1 only... Whats your idea there?
edit: for any input, it is 1/len(text) *100
hope you can correct it..