Python, Python Programming, Web Development, Software Development, Programming.
print(f'Outcome after renaming the of directory: {os.getcwd()} ') Outcome Removing files or directories in Python The rmdir() function in the os module is used to delete a directory. The rmdir() returns an OSError exception type if the directory to be removed is not empty. #OSError: [WinError 145]