Word Count

Learn about tokenizing a string into an array and counting the words in an article.

We'll cover the following

Problem

Let's say a person, Emily, wrote a book review, but she is not sure whether it meets the required word count. Assuming Emily’s article is already saved in an input string, write a program to count the number of words in that string. Store the count in the variable word_count.

Get hands-on with 1400+ tech skills courses.