input: 
  import string
  from random import choice
  
  def generate_password() -> str:
      """ Generates a random password of length 8 characters, containing at least
      one lowercase letter, one uppercase letter, and one number.
      >>> generate_password() # output will vary depending on random generation
      """
      chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
      while True:
          password = ''.join(choice(chars) for _ 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
  
  if __name__ == '__main__':
      print(generate_password())
  
output:     chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
      while True:
          password = ''.join(choice(chars) for _ 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