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

1st Jul 2020, 7:21 PM
Brayan
9 Respuestas
+ 1
1.Use math.ceil. 2. You should exclude special characters from the entered text. 3. You can write: text = input().split()
1st Jul 2020, 7:53 PM
Busyj
+ 3
You have to remove all punctuations as well
1st Jul 2020, 7:51 PM
Abhay
Abhay - avatar
+ 1
Try by adding print(math.ceil(avg))
1st Jul 2020, 7:44 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 1
Ok
1st Jul 2020, 7:45 PM
Brayan
+ 1
No. It didn't work
1st Jul 2020, 7:48 PM
Brayan
+ 1
Thanks!! It works!
1st Jul 2020, 8:19 PM
Brayan
0
What you want here?
1st Jul 2020, 7:37 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
0
I want to solve the Average Word Length challenge. It has to calculate the average of letters per word in an input string
1st Jul 2020, 7:40 PM
Brayan
0
Ok. The problem is I don't know what are the inputs it doesn't work for
1st Jul 2020, 7:43 PM
Brayan