Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count number of words in a string python

a_string = "you string here"
word_list = a_string.split()
number_of_words = len(word_list)
print(number_of_words)
 
PREVIOUS NEXT
Tagged: #count #number #words #string #python
ADD COMMENT
Topic
Name
4+6 =