Write a Python program to get OS name, platform and release information.

Write a Python program to get OS name, platform and release information.

1
2
3
4
5
import platform
import os
print("Name of the operating system:",os.name)
print("\nName of the OS system:",platform.system())
print("\nVersion of the operating system:",platform.release())

Final output

Leave a Comment