• Your program should start by declaring and setting a list variable: g_list = ['Mortal Kombat', 'Contra', 'Streets of Rage', 'Shinobi', 'Sonic', 'Phantasy Star'] • Your program must use the input function • Your program must loop through g_list to print out the values
• Your program should start by declaring and setting a list variable: g_list = ['Mortal Kombat', 'Contra', 'Streets of Rage', 'Shinobi', 'Sonic', 'Phantasy Star'] • Your program must use the input function • Your program must loop through g_list to print out the values
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
![- Your program should start by declaring and setting a list variable: `g_list = ['Mortal Kombat', 'Contra', 'Streets of Rage', 'Shinobi', 'Sonic', 'Phantasy Star']`
- Your program must use the input function.
- Your program must loop through `g_list` to print out the values.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb7dd3b98-af75-4f26-b2b2-482d973d6173%2F43c331b9-6eeb-4bd4-b404-fec52827e634%2F0k6vyre_processed.jpeg&w=3840&q=75)
Transcribed Image Text:- Your program should start by declaring and setting a list variable: `g_list = ['Mortal Kombat', 'Contra', 'Streets of Rage', 'Shinobi', 'Sonic', 'Phantasy Star']`
- Your program must use the input function.
- Your program must loop through `g_list` to print out the values.

Transcribed Image Text:The task involves presenting the user with a list of top Sega games. The user is prompted to select a game they would like to remove from the list. Once the selection is made, the updated list is shown without the removed game.
### List of Games:
- Mortal Kombat
- Contra
- Streets of Rage
- Shinobi
- Sonic
- Phantasy Star
### Expected Output:
1. Display the initial list of top Sega games:
```
Here are the top Sega games:
Mortal Kombat
Contra
Streets of Rage
Shinobi
Sonic
Phantasy Star
```
2. Prompt the user for a game to remove:
```
Which one do you think should be removed?
```
3. Display the updated list after removing "Contra":
```
Here are the new top Sega games:
Mortal Kombat
Streets of Rage
Shinobi
Sonic
Phantasy Star
```
Expert Solution

Explanation
1) Since you have not specified programming language, I have written program in python programming language
2) Below is program that defines the list of top saga games, then prompt user which one they would like to remove, then show the updated list again
- It first defines list of top Sega games
- Display the top Sega games
- Prompt user to which one they would like to remove
- Remove selected game from list
- Display the new top Sega games
3) Save Program in python file and run
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education