I am trying to execute this script to get the hostname of my laptop
I use Windows7 64bit and Python 3.6.4
I have tried this code in Python IDE and it worked . This error occurred in PyCharm
import socket
c = socket.gethostname()
print(c)
Do you have any solutions?