Python, Python Programming, Web Development, Software Development, Programming.
function. import os os.mkdir("python-dev") current_dir = os.getcwd() os.listdir(current_dir) os.rename('python-dev','python-codes') directories = os.listdir(current_dir) print(f'Found {len(directories)} directories in {current_dir}') print('Next Line') for directory in directories: print(directory)