def rand_lcase_str(n):
    '''Return string of n random lowercase letters.'''
    assert n > 0
    rand_chars = [ choice(string.ascii_lowercase) for i in range(n) ]
    return ''.join(rand_chars)
Return string of n random lowercase letters.
recipes/Python/580690_many_uses_randomness__Part/recipe-580690.py