Your question is Script to Check Server Liveness. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Given a file containing a mix of IP addresses and domain names, how would you write a Python script to check if each server is live?