input: def generate_password() -> str:
      """
      Generates a random password of length 8 characters, containing at least one lowercase letter,
      one uppercase letter, and one number.
      Example:
      >>> generate_password()
      'A1b2C3d4'
      """
output:     import random
      import string
  
      lower = random.choice(string.ascii_lowercase)
      upper = random.choice(string.ascii_uppercase)
      number = random.choice(string.digits)
      remaining = ''.join(random.choices(string.ascii_letters + string.digits, k=5))
      password = lower + upper + number + remaining
      return ''.join(random.sample(password, len(password)))