Question: Use Python please Write a program that asks user to input a sentence. Then it should output the number of words in the sentence followed
Use Python please
Write a program that asks user to input a sentence. Then it should output the number of words in the sentence followed by its alternate words. Do not worry about punctuation.
Hint: Use the split() function to get a list of words from the input string. Then use an appropriate range() function to loop over the indices of the list printing alternate words.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
