input: Write a python function to generate a random password of a given length that includes at least one lowercase letter, one uppercase letter, and one digit.
  assert len(generate_password(10)) == 10
  assert any(c.islower() for c in generate_password(10))
  assert any(c.isupper() for c in generate_password(10))
  assert any(c.isdigit() for c in generate_password(10))
output: import random
  import string
  
  def generate_password(length):
      if length < 3:
          raise ValueError("Password length must be at least 3 characters")
  
      all_chars = string.ascii_letters + string.digits
      password = [
          random.choice(string.ascii_lowercase),
          random.choice(string.ascii_uppercase),
          random.choice(string.digits)
      ]
      
      password += random.choices(all_chars, k=length - 3)
      random.shuffle(password)
      return ''.join(password)