title: Python: Check if a directory exists using os module
body: <p>I'm trying to validate if a directory received as user input exists using the os module</p>
  
  <p>This is how I'm accepting the input:</p>
  
  <pre><code>directory = input("Hi ! \n please type a directory, thanks !")
  </code></pre>
  
  <p>The idea is that I want to make sure the user will type an existing directory and nothing else</p>