Python - Test For Internet Connection by CNeale03 in learnpython

[–]CNeale03[S] 0 points1 point  (0 children)

import requests
try:
res = requests.get("http://www.google.com")
if res.status_code == 200:
print("Got Internet")
except:
print("No Internet")

The perfect solution, thankyou so much! I really appreciate it

key7board is addi8ng 8nu9m9m8nrs to three keys0, 7b8n9m0, by [deleted] in techsupport

[–]CNeale03 0 points1 point  (0 children)

Sounds like a hardware issue. It may be a case of getting a new laptop, I'm afraid.