change current working directory,os.chdir('C:\\Users\\username\\Desktop\\headfirstpython\\chapter3')