+ 1
Average word length challenge
https://sololearn.com/coach/73/?ref=app https://code.sololearn.com/cAPABTwzS1x2/?ref=app Some test cases are fine but some are not. Also I used âmath.ceil()â, but I couldnât pass all tests either. Please tell me whatâs wrong it.
2 Answers
+ 2
Read the problem again.
"Takes in a string, figure out the average length of all the words and return a number representing the average length. Remove all punctuation. Round up to the nearest whole number."
you are not removing punctuations.
the len of
what?
should be 4 if you remove the punctuation
Also, it is round up. Not just round.
0
Maybe you missed something