Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Description: In this program we are going to explore a very elementary 'database' using Python. Your program should create and store a list of

image text in transcribed
image text in transcribed
image text in transcribed
Problem Description: In this program we are going to explore a very elementary 'database' using Python. Your program should create and store a list of 20 student names and their corresponding scores Then prompt the user to enter a student name and then display the student's name along with his/her corresponding score. The user should be able to keep looking up student scores until he/she enters the single character'q' to quit the program. Inputs Your Python program should accept a name as input and keep asking for names until they enter 'q' to quit. Output Your program should print the corresponding student's name and score. Please see examples of output below Approach Start by entering and running the following Python code names [Jim', 'Sarah', Jason', 'Lynne', 'Ginny', 'Joe', 'Susan'] print (names) You should see that Python displays your list of names. Now see what happens when you change the second line to print (names[0] + ,' + names[1]) You should see that Python prints the first two names. It is worth noting that names[0] displays the first name in the list and names[1].displays the second name. 1. 2. 3. Now write a loop to display all the names in the list, one per line. Your program will look like this

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_2

Step: 3

blur-text-image_3

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

What is polarization? Describe it with examples.

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago