input: def generate_password():
      """
      Generate a random password of length 8 characters, containing at least one lowercase letter,
      one uppercase letter, and one number.
      >>> generate_password()
      'aB3cDeFg'
      >>> generate_password()
      '1XyZ2WqR'
      """
      from random import choice
      import string
  
      chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
      password = ''.join(choice(chars) for i in range(8))
      if any(c.islower() for c in password) and any(c.isupper() for c in password) and any(c.isdigit() for c in password):
          return password
      else: 
          return generate_password()
output:     from random import choice
      import string
  
      chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
      password = ''.join(choice(chars) for i in range(8))
      if any(c.islower() for c in password) and any(c.isupper() for c in password) and any(c.isdigit() for c in password):
          return password
      else: 
          return generate_password()