Question: Make the program in Python: Create a function that takes a list of words and creates a string by combining three random words from that

Make the program in Python: Create a function that takes a list of words and creates a string by combining three random words from that list. (hint: the module random has a function in it called choice that selects a random element from a list) Have your program ask for a list of words from the user, then a number of movies theyd like to generate. Create the indicated number of movie titles by calling your function on the list of words the user gave you.

Display your results to the user.

Sample Output:

Please enter a list of words: ["Hello", "Dog", "Paper", "Mouse"]

Please enter a number of movies you'd like to generate: 3

Output:

Welcome to Randoplex! Currently playing movies are:

Paper Hello Dog

Mouse Hello Paper

Hello Paper Dog

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!