input: Write a function to generate random passwords of length 8 characters, containing at least one lowercase letter, one uppercase letter, and one number.
  assert generate_password() in [char for char in string.ascii_uppercase + string.ascii_lowercase + string.digits] * 8
  assert any(c.islower() for c in generate_password()) == True
  assert any(c.isupper() for c in generate_password()) == True
  assert any(c.isdigit() for c in generate_password()) == True
  
  if __name__ == '__main__':
      print(generate_password())
output: import random
  import string
  
  def generate_password():
      while True:
          password = ''.join(random.choices(string.ascii_letters + string.digits, k=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