+ 1

Hello . Please help me how to count, how many words in string.Python

Please help me how to count, how many words in string.Python

12th Dec 2017, 9:07 PM
Пиров Мустафо
Пиров Мустафо - avatar
2 Answers
+ 2
Lets say your string is stored in a variable called `string`. The most simple way would be: words = len(string.split())
12th Dec 2017, 9:14 PM
Supersebi3
Supersebi3 - avatar
+ 1
thank you very much
13th Dec 2017, 4:32 AM
Пиров Мустафо
Пиров Мустафо - avatar