Say I have a
string = "Nobody will give me pancakes anymore"
['Nobody', 'will', 'give', 'me', 'pancakes', 'anymore']
You took the first letter of
string, ignoring the result of the
Store the split result; that's a list with individual words:
words = string.split() first_worth_length = len(words)
>>> string = "Nobody will give me pancakes anymore" >>> words = string.split() >>> words 'Nobody' >>> len(words) 6