<jupyter_start><jupyter_text>Exercise-2Add the specified code for each code cell, running the cells _in order_.For these questions, look at the [API documentation](http://data.unhcr.org/wiki/index.php/API_Documentation.html) for the United Nations Refugee Agency (UNHCR) API to identify the appropriate endpoint and information. Then send a GET request (using `get()`) to fetch the resource, and use the `json()` method to extract the data. Access the resulting list or dictionary to answer the question. Import the `requests` module for accessing web data. For what years does the API have statistical data? Print out these years. What is the **"country code"** for the "Syrian Arab Republic"? Print it out. _Hint_ you will need to "search" the returned list! How many **persons of concern** from Syria applied for residence in the USA in 2013?_Hint:_ you'll need to use a query parameter.- Use a for loop to print out each key-value pair **item** on a new line- See http://www.unhcr.org/en-us/who-we-help.html for details on the different terms used in the resource response _And this was only 2013..._ How many **refugees** from Syria settled the USA in each year in the data set (2000 through 2013). Print each year and count on a separate line. Use a single request to fetch the information (it's more polite). _Hint_: check out the "time series" end points. Pick one other country in the world (e.g., Turkey). How many **refugees** from Syria settled in that country in each of the years in the data set (2000 through 2013)?- Print a "table" comparing the numbers to those for the USA for each year. Note: some years may be missing data! "Bonus": How many of the refugees in 2013 were children (between 0 and 4 years old)?<jupyter_code># not in solution yet :(<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07516703786191536, 'fraction_numerical': 0.017260579064587972, 'mean_word_length': 4.546296296296297, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '322921', 'license': 'MIT', 'n_tokens_mistral': 492, 'n_tokens_neox': 457, 'n_words': 281, 'path': 'exercise-2/exercise.ipynb', 'repo_name': 'infx598i-s17/module13-apis', 'size': '1796'}