Though all the functionalities of programs run under the operating system, the provision of a separate module called os is to implement the ones that
are directly depending on the Operating System. They include Creation of files and directories and their management, Input, Output, the Environment Variables, Process Management and so on. Each function of the module os is discussed and given an example for the developer to try.
os module in Python
The os module in Python implements the functionalities that are directly dependent on the operating system. For example creating a file, accessing or adding an environment variable, getting file permissions, getting a process id are all directly dependent on the Operating System.