directories simple example illustrates the use of some of these functions is given belowimport os print('os getcwd(:'os getcwd()print('list contents of directory'print(os listdir()print('create mydir'os mkdir('mydir'print('list the updated contents of directory'print(os listdir()print('change into mydir directory'os chdir('mydir'print('os getcwd(:'os getcwd()print('change back to parent directory'os chdir('print('os getcwd(:'os getcwd()print('remove mydir directory'os rmdir('mydir'print('list the resulting contents of directory'print(os listdir()note that is short hand for the parent directory of the current directory and is short hand for the current directory an example of the type of output generated by this program for specific set up on mac is given belowos getcwd(/users/shared/workspaces/pycharm/pythonintro/textfiles list contents of directory ['my-new-file txt''myfile txt''textfile txt''textfile txt'create mydir list the updated contents of directory ['my-new-file txt''myfile txt''textfile txt''textfile txt''mydir'change into mydir directory os getcwd(/users/shared/workspaces/pycharm/pythonintro/textfiles/mydir change back to parent directory os getcwd(/users/shared/workspaces/pycharm/pythonintro/textfiles remove mydir directory list the resulting contents of directory ['my-new-file txt''myfile txt''textfile txt''textfile txt'