how to get pcs name with python code example Example: get hostname socket socket.gethostbyname(socket.gethostname())