How to check if system is Windows or Linux using Python

check_platform.py
def is_platform_windows():
    return platform.system() == "Windows"

def is_platform_linux():
    return platform.system() == "Linux"

Check out similar posts by category: Python