Actually need to go some path and execute some command and below is the code
code:
import os present_working_directory = \'/home/Desktop
Just call
os.chdir('..')
the same as in any other language :)