A string is a sequence of characters. A string can be a word, phrase, sentence, or a paragraph. It can contain numbers as well as variables, and even HTML tags. “Save settings” and “Please look at %(url)s for more detail.” are both examples of strings. "Save settings" is a string that contains 2 words.
Every sequence of characters and numbers between whitespace (spaces, tabs and newlines) is considered a word. Phrase "Today I've read that Mars has 2 %(moon)s." has 8 words.
Continue Reading