import socket

if __name__=='__main__':
    hostname='www.python.org'
    addr=socket.gethostbyname(hostname)
    print('the ip address of {} is {}'.format(hostname, addr))
import socket

if __name__=='__main__':
    hostname='www.python.org'
    addr=socket.gethostbyname(hostname)
    print('the ip address of {} is {}'.format(hostname, addr))