python-programs/l2p_book/word_problem.py
2025-07-12 21:04:53 -04:00

4 lines
80 B
Python

user_words = input()
total_words = user_words.count(" ") + 1
print(total_words)