Average Word Length | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Average Word Length

I made two codes and they both are not passing cases 3 and 5(which are locked). Please help me debugging them. if possible tell, what and why is the error? Codes: https://code.sololearn.com/c3uTvOKXN8G9/?ref=app https://code.sololearn.com/cTVAyqyEeFnO/?ref=app Code Coach: https://www.sololearn.com/coach/73?ref=app

3rd Sep 2021, 10:43 AM
Scarlet Witch
Scarlet Witch - avatar
2 Answers
3rd Sep 2021, 1:06 PM
Scarlet Witch
Scarlet Witch - avatar
+ 1
Scarlet Witch As ♤♢☞ 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ☜♢♤ has stated, one of the common problems is the rounding to whole number thing. Another common problem is that people automatically count letters and words, but don't notice punctuation or SPACES. Code will count everything, unless you specify not to
3rd Sep 2021, 11:35 AM
Rik Wittkopp
Rik Wittkopp - avatar