Верните количество слов в строке s (слова разделены пробелами).
s
"hello world"
2
" one two three "
3
""
0
def count_words(s: str) -> int:
Sign in to see submission history
Sign in to use AI Mentor
Your code output will appear here