Question: Create a function called countWords(string): That will count words in given string by user. Use Python 3.6 If user inputs Mary had a little lamb
Create a function called countWords(string):
That will count words in given string by user.
Use Python 3.6
If user inputs "Mary had a little lamb" it should return 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
