<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def password_generator(length):
 """Generate a random password. :param length: integer. """

    return ''.join(random.choice(string.ascii_lowercase + string.digits)
                   for _ in range(length))