python program to get the directory of an element code example Example: which folder python os import os cwd = os.getcwd()