demo_requests_head_timeout.py:
C:\Users\My Name>python demo_requests_head_timeout.py
Connection to w3schools.com timed out. (connect timeout=0.001)