+ 1
Okay. I will give the steps. First, split the input. Then you will have different words in the list. Find the length of the words by using loop and then round up the average
8th Apr 2020, 10:09 AM
Taranjeet
Taranjeet - avatar
0
Try it yourself first.
8th Apr 2020, 10:06 AM
Taranjeet
Taranjeet - avatar
0
Show any attempt
8th Apr 2020, 10:09 AM
Justus
Justus - avatar
0
which issues are you facing? post your code.
8th Apr 2020, 10:10 AM
John Robotane
John Robotane - avatar
0
Send any attempt you made. So that it is easy to correct your code
8th Apr 2020, 10:10 AM
Taranjeet
Taranjeet - avatar
0
I sent you the steps above try that first.
8th Apr 2020, 10:11 AM
Taranjeet
Taranjeet - avatar
0
First try by yourself and when you get stuck, ask us.
9th Apr 2020, 10:32 PM
Jonathan Alvarado
Jonathan Alvarado - avatar
0
here is my code but the problem is my variable word_sum counts the spaces too. text = input() total = text.split() words_in_sentence = len(total) words_sum = len(text) print((words_sum/words_in_sentence)
30th Mar 2021, 12:52 AM
Ailana
Ailana - avatar