Get operating system name and type

There are 3 ways to get Operating System information in Python, each via a different module.

import os
import platform
import sys

print(os.name)
print(platform.system())
print(platform.release())
print(sys.platform)
Output
posix
Darwin
20.6.0
darwin