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.

A+ Guide To It Technical Support
10th Edition
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:ANDREWS, Jean.
Chapter18: Macos, Linux, And Scripting
Section: Chapter Questions
Problem 16TC: You work at an IT help desk and have been asked to set up 25 new user accounts in Active Directory....
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
A+ Guide To It Technical Support
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage