Determine the name of the operating system

suggest change

The os module provides an interface to determine what type of operating system the code is currently running on.

os.name

This can return one of the following in Python 3:

More detailed information can be retrieved from sys.platform

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


os module:
*Determine the name of the operating system

Table Of Contents
31Set
111os module
166Gzip