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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!