0

I was trying to solve a problem Named:(Find the average word length).Please read description to clear out.

So the problem was find the average word length in a string sentence. I solved that with python, MY CODE: >>> word = input() total = 0 count = 0 for c in word.split(): length = len(word) total += length count += 1 avg_length = total/count print(round(avg_length)) >>>> I also got the answer. But When i submitted my code 3 test was passed but two where failed. and right now i also Don't even know what should i do to fix in my code. Please can anybody help me. Please.

14th Sep 2020, 1:00 PM
Jahir Raihan Joy
Jahir Raihan Joy - avatar
6 odpowiedzi
0
you forgot this condition " Remove all punctuation."
14th Sep 2020, 1:40 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
Thanks Dear.
14th Sep 2020, 3:51 PM
Jahir Raihan Joy
Jahir Raihan Joy - avatar
0
Why this emoji Bro🙂? This emoji is known as (sad ultra pro max)expression 😂
14th Sep 2020, 3:55 PM
Jahir Raihan Joy
Jahir Raihan Joy - avatar
0
Ok please tell me why my account is not activated. Even i Didn't get any kind of activision email?
14th Sep 2020, 4:00 PM
Jahir Raihan Joy
Jahir Raihan Joy - avatar
0
🥺 When i try to give vote to someone's comment, they always remind me to activate my account, f@ck. You can see that i can't even give a vote to your comments too😂
14th Sep 2020, 4:09 PM
Jahir Raihan Joy
Jahir Raihan Joy - avatar
0
I can guess that you're a playboy.') Have a nice day dude😉
14th Sep 2020, 4:16 PM
Jahir Raihan Joy
Jahir Raihan Joy - avatar