Get your MAC address using the uuid module

mahabub.devs3
Mahabubur Rahman
Published on Sep, 26 2024 1 min read 0 comments
image

Code  - 

import uuid
mac = uuid.getnode()
print(hex(mac))

Output - 

0x1a7dda7113
0 Comments