32-bit versions of Python (regardless of the architecture it is installed on):
>>> import platform
>>> platform.architecture()
('32bit', 'WindowsPE')
64-bit Python versions:
>>> import platform
>>> platform.architecture()
('64bit', 'WindowsPE')
source
to share