RosettaCodeData/Task/Hostname/Python/hostname.py

3 lines
42 B
Python

import socket
host = socket.gethostname()