1 2 3 4 5
from random import choices def generate(length=1) -> str: return ''.join(choices('abcdefghijklmnopqrstuvwxyz0123456789', k=length))