add word_problem.py
This commit is contained in:
parent
9baf29126b
commit
ede8cca2b3
3
l2p_book/word_problem.py
Normal file
3
l2p_book/word_problem.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
user_words = input()
|
||||||
|
total_words = user_words.count(" ") + 1
|
||||||
|
print(total_words)
|
||||||
Loading…
x
Reference in New Issue
Block a user