os is a core Python module that allows exposure of OS-specific tasks.
Contains...[]
os.error- an alias for the OSError exceptionos.name- the registered name of the OS. For example: 'posix', 'nt','win32', 'win64'.os.environ- the environment that Python interpreter currently sees. This object is like a dict. Setting will call 'putenv'os.chdir(path),os.fchdir(fd),os.getcwd()- current directory functions. chdir CHanges DIRectory, getcwd GETs Current Working Directory and fchdir changes to the direct that the file that is specified by the fd is inor.urandom(n)- Generates a random string of bytes, n digits long. Unlikerandom.randint, it is completely random; not pseudorandom.os.system(command)- Executes a CMD or Bash command, depending on your System.
This is a short article. Please extend it!