LearnPy Hub
← Strings problems
Easy

Count the Spaces

Read a line and print how many spaces it contains.

Input

One line.

Output

One integer.

Sample 1

Input
a b c
Output
2

Sample 2

Input
no_spaces
Output
0
solution.py
Output appears here
Count the Spaces · Python practice problem · LearnPy Hub