I'm testing the Socket module by writing some very simple code, but I'm having an error!
Follow the code below:
import socket
resp="Y"
while(resp=="Y"):
url=input("URL: ")
ip=socket.gethostbyname(url)
print("IP: ", ip)
resp=input("Type <y> to continue: ").upper()