Question: 1 . Extend / modify the previous part to include the following: Use a for loop and the range function to access both lists to

1.Extend/modify 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.
2.Prompt the user to choose a number between 1 and the number of movies in the file you chose. Assume the user always enters a number in the specified range.
3.Use the number entered to display a message showing the corresponding movie.
4.Prompt the user to guess the release year of that movie.
Check if the guess is correct and provide appropriate feedback.What to do
5.Extend/modify 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 1 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
mcu2.py
After completing this part, your output should match the sample output and test cases
below:
Sample output
Enter filename: movies1.txt
WELCOME TO THE SHIELD DATABASE >>
Iron Man 2008
Thor 2011
Captain America: The First Avenger 2011
Doctor Strange 2016
Spider-Man: Homecoming 2017
Black Panther 2018
Captain America: The Winter Soldier 2014
The Avengers 2012
Spider-Man: No Way Home 2021
1 . Extend / modify the previous part to include

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 Programming Questions!