'id' 'kids'[ the dictionary contains number of keys we can work withsuch as 'urlu and 'titlev the key 'descendantscontains the number of comments an article has received the key 'kidsprovides the ids of all comments made directly in response to this submission each of these comments may have kids of their own as wellso the number of descendants submission has can be greater than its number of kids let' make an api call that returns the ids of the current top articles on hacker newsand then examine each of the top articleshn_ submissions py import requests from operator import itemgetter make an api call and store the response url ' requests get(urlprint("status code:" status_codeprocess information about each submission submission_ids json( submission_dicts [for submission_id in submission_ids[: ]make separate api call for each submission url ('str(submission_idjson'submission_r requests get(urlprint(submission_r status_coderesponse_dict submission_r json( submission_dict 'title'response_dict['title']'link'''comments'response_dict get('descendants' submission_dicts append(submission_dictsubmission_dicts sorted(submission_dictskey=itemgetter('comments')reverse=truefor submission_dict in submission_dictsprint("\ntitle:"submission_dict['title']print("discussion link:"submission_dict['link']print("comments:"submission_dict['comments']firstwe make the api call and print the status of the response this api call returns list containing the ids of the most popular articles on hacker news at the time the call is issued we then convert the response working with apis