We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a51c0 commit ec74f40Copy full SHA for ec74f40
internet_connection_py3
@@ -0,0 +1,8 @@
1
+import urllib.request
2
+
3
+try:
4
+ urllib.request.urlopen('http://google.com')
5
+ print ("working connection")
6
7
+except urllib.error.URLError:
8
+ print ("No internet connection")
0 commit comments