(n)
return code
Create n length random string
Create n length random string
Create n length random string
def random_string(n):
    """Create n length random string"""

    chars = string.letters + string.digits
    code = ''.join([random.choice(chars) for i in range(n)])
    return code
def random_string ( n ) : chars = string . letters + string . digits code = '' . join ( [ random . choice ( chars ) for i in range ( n ) ] ) return code