__author__ = 'yiqing'

import socket

def print_machine_info():
    host_name = socket.gethostname() ;
    ip_address = socket.gethostbyname(host_name)

    print("host name is: %s" % host_name)
    print("Ip address is %s " % ip_address)

if __name__ == '__main__':
    print_machine_info()