title: Assign a variable to every directory inside one folder. (python)
body: <p>I have one folder that contains many other folders. I want to able to extract those directory names and assign them to variables. I dont know the names of those folders and I dont know the quantity either. I need just the names of those folders and not the entire path.</p>
  
  <p>Example:</p>
  
  <p>inside <code>\users\temp\</code> I have 2 directories. <code>test1</code>, <code>test2</code></p>
  
  <pre><code> folder[0] = test1
  
   folder[1] = test2
  </code></pre>
  
  <p>and so on....depending on how many directories I have.</p>
  
  <p>Thank you</p>