Question: use python only Write a program that prompts the user to enter a sentence. You can assume that each word in the sentence is separated
use python only
Write a program that prompts the user to enter a sentence. You can assume that each word in the sentence is separated by a single space character. The program then prints the unique words within the sentence in the reverse order they appear, such that each word is separated by a comma and a space ("," ). Some examples of the program being run are shown below. Notes: - This question can be solved easily using the string methods split() and join() and the list method reverse(). - The output must be in the format shown in the examples below, including the format of the prompt, and all spaces and punctuation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
