How To Create Folders Based on a Range of Numbers in Python
<p>I want to create a few folders based on a given range of numbers. For example, I want to create folders 500 through 520. Is there a way to create these folders using the     <code>range(500, 520)</code> ?</p>

<p>Am I heading down the right path with this code?</p>

<pre><code>    import os

    for i in range(500, 520):
        os.mkdir(r'C:\Dir' + i)
</code></pre>

<p>I know this is wrong since <code>i</code> is an integer, but can someone guide me to the right direction? </p>
