title: change current working directory in python
body: <p>I made a folder on my desktop with the name "headfirstpython" and I need to change my current working directory to that folder and to the sub folder inside of it. I used os.getcwd() to get the current folder and it gives me 'C\Python32'. I used os.chdir('../headfirstpython/chapter3') to change the directory but its telling it cannot find the path </p>
  
  <pre><code>&gt;&gt;&gt; import os
  &gt;&gt;&gt; os.getcwd()
  'C:\\Python32'
  &gt;&gt;&gt; os.chdir('../headfirstpython/chapter 3')
  Traceback (most recent call last):
  File "&lt;pyshell#2&gt;", line 1, in &lt;module&gt;
  os.chdir('../headfirstpython/chapter 3')
  WindowsError: [Error 3] The system cannot find the path specified:         '../headfirstpython/chapter 3'
  &gt;&gt;&gt; os.chdir('../headfirstpython/chapter3')
  Traceback (most recent call last):
  File "&lt;pyshell#3&gt;", line 1, in &lt;module&gt;
  os.chdir('../headfirstpython/chapter3')
  WindowsError: [Error 3] The system cannot find the path specified:   '../headfirstpython/chapter3'
  &gt;&gt;&gt; 
  </code></pre>