Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a class named NobelData that reads a JSON file containing data on Nobel Prizes and allows the user to search that data. Specifically, your

Write a class named NobelData that reads a JSON file containing data on Nobel Prizes and allows the user to search that data. Specifically, your class should have an init method that reads the file, and it should have a method named search_nobel that takes as parameters a year and a category, and returns a sorted list of the surnames for the winner(s) in that category for that year (up to three people can share the prize). The year will be a string ("1975"), not a number. The categories are: "chemistry", "economics", "literature", "peace", "physics", and "medicine". The JSON file will be named nobels.json and will be provided - you do not need to submit it.

***PYTHON 3 ONLY***

For example, your class could be used like this:

nd = NobelData() nd.search_nobel(2001, "economics") 

The file must be named: NobelData.py

Here is the link to nobels.json: http://api.nobelprize.org/v1/prize.json

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

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

More Books

Students also viewed these Databases questions

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago