Netanalytics interview question

How to ping a website using python