import os
dir_name = "new_dir"
os.mkdir(dir_name)
os.chdir(dir_name)
print("THE cwd now is in " + os.getcwd())
os.rmdir("../"+dir_name)
print(dir_name+" deleted")
print("Checking CWD")
print("THE script now is in " + os.getcwd())
the getcwd returns error instead of checking the current working directory can someone point me to the reason for that as documentation or just tell me why