Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use the randrange() function to a. randomly select a number between 1 and 100, then print the number b. randomly select an odd number

1. Use the randrange() function to a. randomly select a number between 1 and 100, then print the number b. randomly select an odd number between 1 and 100, then print the number c. randomly select an even number between 1 and 100, then print the number 2. Use the randint() function to a. randomly select a number between 1 and 100, then print the number b. randomly select an odd number between 50 and 100, then print the number c. randomly select an even number between 1 and 100, then print the number 3. Make a empty list called movie_list 4. Use a while loop to ask the user to enter a movie or q to quit. Each loop, if a movie is entered, it should be added to the list. If q is entered, break out of the loop. 5. Use a for loop to print each element of the list on a separate line. 6. Use the shuffle() function to randomly shuffle the list, then print the shuffled list using a for loop. 7. Use the choice() function to randomly choose a movie from the list and print the movie.

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Why is an understanding of the anatomical position important?

Answered: 1 week ago

Question

What are the five major objectives of a promotional strategy?

Answered: 1 week ago