Python, Python Programming, Web Development, Software Development, Programming.
directories in {current_dir}') print('Next Line') for directory in directories: print(directory) Change directory in Python The chdir() is used to change the directory. import os os.chdir('c:/Users/Desktop/') print(f'Outcome after change of directory: {os.getcwd()} ') # Outcome after change of