Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f295ade

Browse files
committed
correct urlib importation
1 parent 6842347 commit f295ade

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
File renamed without changes.

week5_exercise.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
"\n",
9898
"Hint 2: use the `urllib.request.urlopen()` to download the url:\n",
9999
"```python\n",
100-
" import urllib.request.urlopen\n",
101-
" f = urllib.request.urlopen(a_url)\n",
100+
" from urllib.request import urlopen\n",
101+
" f = urlopen(a_url)\n",
102102
" lines = f.readlines()\n",
103103
"```\n",
104104
"\n",
@@ -130,7 +130,7 @@
130130
"name": "python",
131131
"nbconvert_exporter": "python",
132132
"pygments_lexer": "ipython3",
133-
"version": "3.7.6"
133+
"version": "3.7.1"
134134
}
135135
},
136136
"nbformat": 4,

0 commit comments

Comments
 (0)