Code:
for i in {0..3}; do ping http://www.pythonchallenge.com/pc/def/$i.html; done
A host should be found at http://www.pythonchallenge.com/pc/def/0.html.
I get this error for all pings:
ping: cannot resolve http://www.pythonchallenge.com/pc/def/0.html: Unknown host
html pages != hosts. If you want to check if the three web pages actually exist, use wget. If you only want to check if the host is up, ping http://www.pythonchallenge.com.