Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
What errors do this code has
I'm trying to solve the Average Word Length challenge in Python but it only works with some inputs. https://code.sololearn.com/clVg3q8rccnL/?ref=app
9 ответов
+ 1
1.Use math.ceil.
2. You should exclude special characters from the entered text.
3. You can write: text = input().split()
+ 3
You have to remove all punctuations as well
+ 1
Try by adding print(math.ceil(avg))
+ 1
Ok
+ 1
No. It didn't work
+ 1
Thanks!! It works!
0
What you want here?
0
I want to solve the Average Word Length challenge. It has to calculate the average of letters per word in an input string
0
Ok. The problem is I don't know what are the inputs it doesn't work for