Python's platform module


Python tip:

You can check the type of machine and platform that your program is running from with platform.machine() and platform.platform(), respectively.

An example👇

import platform

print(platform.machine())
# => x86_64

print(platform.platform())
# => macOS-10.15.6-x86_64-i386-64bit