Log in
← All problems

Count the words

easyStrings10 XP

Return how many words are in s. Words are separated by one or more spaces; spaces at the start or end don't count.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.