demo_requests_response_close.py:
import requests url = 'https://w3schools.com/python/demopage.htm' x = requests.get(url) #close the connection to the server: x.close()
C:\Users\My Name>python demo_requests_response_close.py