input: Write a function to generate a random password consisting of 8 characters which include alphabets and digits. The function should not take any input and should return the generated password as a string.
  
  assert generate_password()=="aZ3rBt7X"
  assert generate_password()=="1mN2OpQ3"
  assert generate_password()=="9WxYz0A4"
  assert generate_password()=="Bc5d6EfG"
  assert generate_password()=="H7iJkLmN"
output: import random
  import string
  
  def generate_password():
      return ''.join(random.choices(string.ascii_letters + string.digits, k=8))