Question: Python 3 Write a program that will take a sentence as input and will count the total words in the sentence (You can have single
Python 3 Write a program that will take a sentence as input and will count the total words in the sentence (You can have single or multiple spaces between two words). Sample Input: Enter the sentence: Ohio University Sample Output: Total 3 words Sample Input: Enter the sentence: to be or not to be that is the question Sample Output: Total 10 words
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
