add word_problem.py

This commit is contained in:
cheeks 2025-07-12 21:04:53 -04:00
parent 9baf29126b
commit ede8cca2b3

3
l2p_book/word_problem.py Normal file
View File

@ -0,0 +1,3 @@
user_words = input()
total_words = user_words.count(" ") + 1
print(total_words)