import os print("File location using os.getcwd():", os.getcwd()) print(f"File location using __file__ variable: {os.path.realpath(os.path.dirname(__file__))}")