Solve problem "The number of words" online - Learn Python 3 - Snakify

Problem «The number of words» (Easy)


Statement

Given a string consisting of words separated by spaces. Determine how many words it has. To solve the problem, use the method count.

In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
Hello world
2
Hello
1
q w e
3
In the hole in the ground there lived a hobbit
10
One two three four five
5