input: Write a function to generate a random password of length 8 characters, containing at least one lowercase letter, one uppercase letter, and one number. The function should return the generated password. If the generated password does not meet the criteria, the function should generate a new password.
  
  assert generate_password()=="A3b4C5d6"
  assert generate_password()=="9ZxY2wQ1"
  assert generate_password()=="7PjK8mNl"
  assert generate_password()=="5RtG6hBv"
  assert len(generate_password())==8
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