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:
ran down hill
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
EXPECTED OUTPUT BELOW THERE ARE MORE THAN 1 INPUT



1: Compare outputA 6/6 Input Hello everybody hope you are doing great Enter the sentence: Total 7 words Your output 2: Compare output ^ 0/6 Output differs. See highlights below. nput Enter the sentence: Your outputTotal 2words Enter the sentence: Expected output Total words : Compare output 0/6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
