Skip to content

Commit 0ac4ddb

Browse files
last minute edits
1 parent fc1c6d9 commit 0ac4ddb

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

1-foundations/4-api-and-dataviz/foundations-s4-api.ipynb

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"`requests.get(my_url)`\n",
8585
"\n",
8686
"- `my_url` is a string with the URL address you want to access\n",
87-
"- the `get()` method of `requests` uses your internet connection to enter a URL address in the internet and obtain a response with information from it\n",
87+
"- the `get()` commands of `requests` uses your internet connection to enter a URL address in the internet and obtain a response with information from it\n",
8888
"- you can save the response in a Python variable this way:\n",
8989
"\n",
9090
"`response = requests.get(my_url)`\n",
@@ -396,7 +396,7 @@
396396
"cell_type": "markdown",
397397
"metadata": {},
398398
"source": [
399-
"Remove the first line of the followin block and run it to verify that your solution works. It should not return an error."
399+
"Remove the first line of the following block and run it to verify that your solution works. It should not return an error."
400400
]
401401
},
402402
{
@@ -542,7 +542,7 @@
542542
"metadata": {},
543543
"outputs": [],
544544
"source": [
545-
"# == DO NOT MOFIDY THIS FUNCTION BUT THE NEXT ==\n",
545+
"# == DO NOT MODIFY THIS FUNCTION BUT THE NEXT ==\n",
546546
"def fetch_geoboundaries_data(country_code, admin_level):\n",
547547
" \n",
548548
" endpoint = 'https://www.geoboundaries.org/api/current/gbOpen/'\n",
@@ -557,8 +557,15 @@
557557
" else:\n",
558558
" \n",
559559
" print('Request failed!')\n",
560-
" return None\n",
561-
"\n",
560+
" return None"
561+
]
562+
},
563+
{
564+
"cell_type": "code",
565+
"execution_count": null,
566+
"metadata": {},
567+
"outputs": [],
568+
"source": [
562569
"# == MODIFY THIS FUNCTION FOR YOUR ANSWER ==\n",
563570
"def obtain_geodata(country_code, admin_level):\n",
564571
" \n",

0 commit comments

Comments
 (0)