Write a python function that accepts a valid path and changes the current working directory


Topic: Write a python function that accepts a valid path and changes the current working directory

Solution

import os
def change_dir(path):
    return os.chdir(path)



List all Python Programs