input: from typing import List
  
  def generate_password() -> str:
      """Generate a random password of length 8 characters that contains at least one 
      lowercase letter, one uppercase letter, and one number.
      >>> generate_password()
      'A1b2C3d4'
      >>> generate_password()
      'X9y8Z7w6'
      """
output:     import random
      import string
  
      password = []
      password.append(random.choice(string.ascii_lowercase))
      password.append(random.choice(string.ascii_uppercase))
      password.append(random.choice(string.digits))
  
      all_chars = string.ascii_letters + string.digits
      password.extend(random.choice(all_chars) for _ in range(5))
  
      random.shuffle(password)
      return ''.join(password)