Skip to content

Instantly share code, notes, and snippets.

View iamramahibrah's full-sized avatar
🏠
Working from home

Ramadhan Ibrahim iamramahibrah

🏠
Working from home
View GitHub Profile
import socket, getmac
#user_info_function
def userinfo():
host = socket.gethostname()
ip = socket.gethostbyname(host)
mac = getmac.get_mac_address()
print("Host name : ",host)
print("Ip Address : ",ip)
print("Mac Address : ",ip)
# import getmac library
import getmac
# Getmac function
def getmac():
mac = getmac.get_mac_address()
print(mac)
getmac()