Platform information

EasyOS Module Programs · 49 of 49

Write a Python program to print platform details.

Advertisement
Output
OS: Windows
Architecture bits: 64bit
Python implementation: CPython

Approach

  1. The platform module.

Solution

Python
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.

More os module programs

← All 49 OS Module Programs

Leave a Comment