how to go to python directory folder code example Example: which folder python os import os cwd = os.getcwd()