Python - Get MAC Address

Thursday, January 18th, 2018 | Coding
Last Modified: 2024-04-26



from uuid import getnode as get_mac
mac = get_mac()
print mac
print hex(mac)
':'.join(("%012X" % mac)[i:i+2] for i in range(0, 12, 2))



Input Action Output
A collection of snippets and links that have proven useful for development, programming, ColdFusion, Javascript, jQuery, PHP, Python, Dell, Minecraft, Apple, Mac, Windows, LINUX, Raspberry Pi, Adobe, CSS, and HTML.

©2024 Input Action Output