Python Practice › OS Module Programs › Program 49
Platform information
Write a Python program to print platform details.
Output
OS: Windows Architecture bits: 64bit Python implementation: CPython
Approach
- The
platformmodule.
Solution
import platform print("OS:", platform.system())print("Architecture bits:", platform.architecture()[0])print("Python implementation:", platform.python_implementation())Output
OS: Windows Architecture bits: 64bit Python implementation: CPython
Learn the concept
New to this topic? Read the lesson, then come back.