Question: can some please solve this question in python please (here, the us er 21 21, wu te program Chose to Oulupuu sy 17. Write code
(here, the us er 21 21, wu te program Chose to Oulupuu sy 17. Write code that allows the user to type in a sentence composed of at least three words with spaces between them, and no punctuation. (You may assume the user complies. The program should then create a list of the words, and then randomly choose two different words to delete from the list - which two words should be chosen by the computer. Finally, the list should be printed out. For example, a sample run might look like this: Enter a sentence: here is user input blah yadda hey L'here', 'is', 'input', 'yadda', 'hey'] The sentence here is user input blah yadda hey is typed by the user, and everything else is produced by the program. The program chose to remove the 3rd and 5th words (user and blah) in the list. whenlusta value of their difference is less than or equal to 2. Se for
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
