Random strings in Python
<p>How do you create a random string in Python?</p>

<p>I needed it to be number then character repeat till you're done this is what I created</p>

<pre><code>def random_id(length):
    number = '0123456789'
    alpha = 'abcdefghijklmnopqrstuvwxyz'
    id = ''
    for i in range(0,length,2):
        id += random.choice(number)
        id += random.choice(alpha)
    return id
</code></pre>
