Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started