+ 1

Code coach problem

Need a help in word length average https://www.sololearn.com/coach/73?ref=app My code is here: It match except 1

30th Jun 2020, 3:59 PM
Mandip Adhikari
Mandip Adhikari - avatar
7 ответов
+ 2
Mandip Adhikari you have attached the link to problem, not your solution. For that you have to copy paste it in code playground and then attach that code file here.
30th Jun 2020, 4:01 PM
Arsenic
Arsenic - avatar
+ 1
I think you're calculation of characters is wrong: len(text) - text.count(" ") It does not recognize the special characters. I'll check that...
30th Jun 2020, 4:26 PM
Sandra Meyer
Sandra Meyer - avatar
+ 1
Try this for your sentence variable: letter_count = 0; for char in text: if char.isalpha(): letter_count = letter_count + 1;
30th Jun 2020, 4:30 PM
Sandra Meyer
Sandra Meyer - avatar
+ 1
Thanks for your help. Sandra meyer....
1st Jul 2020, 2:03 AM
Mandip Adhikari
Mandip Adhikari - avatar
30th Jun 2020, 4:06 PM
Mandip Adhikari
Mandip Adhikari - avatar
0
Hi bro
2nd Jul 2020, 3:25 AM
rajkumar
rajkumar - avatar
0
Iam new learn
2nd Jul 2020, 3:25 AM
rajkumar
rajkumar - avatar