Write a Python program to determine if the Python shell is executing in 32-bit or 64-bit mode on the operating system.

Write a Python program to determine if the Python shell is executing in 32-bit or 64-bit mode on the operating system.

1
2
3
import struct
print(struct.calcsize("P") * 8)
Sa

Final output

Leave a Comment