title: How to save a file to a specific directory in python?
body: <p>Currently, I am using this code to save a downloaded file but it is placing them in the same folder where it is being run from.</p>
  <pre><code>r = requests.get(url)  
  with open('file_name.pdf', 'wb') as f:
      f.write(r.content)
  </code></pre>
  <p>How would I save the downloaded file to another directory of my choice?</p>