Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Random Cinema: We want to create a movie theater that displays entirely random movies. To help with this were going to write a program to

Random Cinema:

We want to create a movie theater that displays entirely random movies. To help with this were going to write a program to create these random movie titles based on a user given list of words.

To accomplish this:

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:

Your code when run should look similar to this with the text in blue generated by the program and the text in green entered by the user.

>>>Please enter a list of words: ["Space", "Show", "Adventure", "Story", "Love", "Wild", "Life"]

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

Welcome to Randoplex! Currently playing movies are:

Adventure Life Space

Show Love Story

Wild Space Life

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Briefly describe how CSMA/CD works.

Answered: 1 week ago