Average Word Length | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 🇮🇳