An ICMP ping is the most common type of network scanning you have ever encountered. It is very easy to open a command-line prompt or Terminal and type ping www.google.com. How difficult is that from inside a Python program? This recipe shows you an example of a Python ping.