>>> import os >>> os.getcwd() # Return the current working directory 'C:Python39' >>> os.chdir('/server/accesslogs') # Change current working directory >>> os.system('mkdir today') # Run the command mkdir in the system shell 0