0

Average Word Length

Code not working: text = input() words = text.split() size = len(words) total = len(text) avg = total/size print(avg)

2nd Nov 2022, 8:52 AM
Charles Mwaniki
Charles Mwaniki - avatar
1 Réponse
+ 4
Exclude spaces from total length of text.
2nd Nov 2022, 9:32 AM
Jayakrishna 🇮🇳