Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a python file that prompts a user to type in a college name. If the college is found in the database (.txt file) have

Create a python file that prompts a user to type in a college name. If the college is found in the database (.txt file) have the program respond with both the city and the college name. If it is not found, display an error message that states the college is not found in the database. Please create a database of 10 colleges.

The output should look like this:

Please enter a college and I will return the city. (x to exit, random to get a random College/City)

College: Utah Valley University

The city of Utah Valley University is Orem

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

Step: 3

blur-text-image

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

Data Science For Dummies

Authors: Lillian Pierson ,Jake Porway

2nd Edition

1119327636, 978-1119327639

More Books

Students also viewed these Databases questions

Question

10.

Answered: 1 week ago

Question

Is conflict always unhealthy? Why or why not? (Objective 4)

Answered: 1 week ago