+ 1

(Solved)Please help me with average word length quiz. Thank you already🤗

For average word length quiz, I'm getting error for the fifth test case. I don't know what's wrong with my code. But also, help me with how to find it myself. I searched the forum and couldn't find the answer to my error P.S: now I've already tried about 10 different codes and all fail the same test case(5). Please help me🥺 https://code.sololearn.com/cAI3HrZoF65f/?ref=app

14th Jun 2021, 5:24 AM
Rishi
Rishi - avatar
4 odpowiedzi
+ 2
Are you rounding up or down?
14th Jun 2021, 7:22 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Rik Wittkopp up. for example, 5.2 becomes 6
14th Jun 2021, 7:24 AM
Rishi
Rishi - avatar
+ 2
Check your challenge details. Quite often then answer to a question like this is in the fine print of the question. I don't know c or the details of the question, but quite often the flaw is: 1. Rounding not meeting challenge requirements 2. Spaces being counted as letters 3. Special characters and numbers being counted as letters. Try assessing your code against these 3 filters to see if that could be the problem Good luck
14th Jun 2021, 7:28 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Rik Wittkopp okay thank you
14th Jun 2021, 8:52 AM
Rishi
Rishi - avatar