Question: 1 . Extend / modify the previous part to include the following: Use a for loop and the range function to access both lists to
Extendmodify the previous part to include the following:
Use a for loop and the range function to access both lists to display a numbered list of the movies along with their release years. Each movie and its corresponding release year should be printed on separate lines.
Prompt the user to choose a number between and the number of movies in the file you chose. Assume the user always enters a number in the specified range.
Use the number entered to display a message showing the corresponding movie.
Prompt the user to guess the release year of that movie.
Check if the guess is correct and provide appropriate feedback.What to do
Extendmodify the previous part to include the following:
Use a for loop and the range function to access both lists to display a numbered list of
the movies along with their release years. Each movie and its corresponding release
year should be printed on separate lines.
Prompt the user to choose a number between and the number of movies in the file
you chose. Assume the user always enters a number in the specified range.
Use the number entered to display a message showing the corresponding movie.
Prompt the user to guess the release year of that movie.
Check if the guess is correct and provide appropriate feedback.
Name your file
mcupy
After completing this part, your output should match the sample output and test cases
below:
Sample output
Enter filename: moviestxt
WELCOME TO THE SHIELD DATABASE
Iron Man
Thor
Captain America: The First Avenger
Doctor Strange
SpiderMan: Homecoming
Black Panther
Captain America: The Winter Soldier
The Avengers
SpiderMan: No Way Home
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
