python_basics/get_ip.py
2020-09-01 19:26:56 +00:00

5 lines
72 B
Python

import socket
inp = input('domain: ')
print(socket.gethostbyname(inp))