HOME/Articles/

systemInfo (snippet)

Article Outline

Python example 'system info'. This snippet outputs some system information.

Modules used in program:

  • import sys
  • import os
  • import platform

systemInfo

Python beginners example: systemInfo

import platform  
import os  
import sys

print('============================')
print('System Information : ')
print(os.name)  
print(platform.system())  
print(platform.release(),'\n')
print('============================')
print('Python Version Installed : ')
print(sys.version,'\n')
print('============================')