Hello,  I am trying to write a program in Pynthon. I do not know may be it is too much. Just need some directions. Thank you 1. Create a new Jupyter Notebook, using your name for the file name as we normally do. Make sure you can download it and it is a .ipynb file and that it will work when I upload it to my Jupyter.2. Write code that opens and reads Websites.txt (found in BB under Data Files) and uses it to build a dictionary that contains arrays of the URL's in the file as values and keywords as keys. It should look something like the below:{'soccer':['goal.com','mls.com','espn.com'...3. In the dictionary, keys should be unique (i.e., in the above example, 'soccer' should only appear once as a key). URL's may appear more than once (e.g., ESPN should appear in the value for 'soccer' as well as 'sports').4. Prompt the user for a key term and print the URL's that correspond to that term. If I input 'recipes' then foodnetwork.com and recipes.com should appear.5. If the user enters a key term that is not found in the file, just print 'No results found for your key word.'6. I will test this by running it using a text file with a completely different list of keywords and URL's.

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
icon
Related questions
Question
100%

Hello, 

I am trying to write a program in Pynthon.

I do not know may be it is too much. Just need some directions.

Thank you

1. Create a new Jupyter Notebook, using your name for the file name as we normally do. Make sure you can download it and it is a .ipynb file and that it will work when I upload it to my Jupyter.
2. Write code that opens and reads Websites.txt (found in BB under Data Files) and uses it to build a dictionary that contains arrays of the URL's in the file as values and keywords as keys. It should look something like the below:{'soccer':['goal.com','mls.com','espn.com'...
3. In the dictionary, keys should be unique (i.e., in the above example, 'soccer' should only appear once as a key). URL's may appear more than once (e.g., ESPN should appear in the value for 'soccer' as well as 'sports').
4. Prompt the user for a key term and print the URL's that correspond to that term. If I input 'recipes' then foodnetwork.com and recipes.com should appear.
5. If the user enters a key term that is not found in the file, just print 'No results found for your key word.'6. I will test this by running it using a text file with a completely different list of keywords and URL's. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 4 images

Blurred answer
Knowledge Booster
Windows
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education