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

The names registered in Python 3 are:

ce, the old Windows CE name, is not one of them. This interpreter reports nt.

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:



Table Of Contents