Count Words

Count the number of whitespace-separated words in a string.

Code

General
len(str.split())

Parameters

The string to count words in

Server

More Python Snippets