input: Write a function to generate a random password consisting of 8 characters. The password should include a mix of uppercase and lowercase letters, as well as digits. If the function is called, it should return a string of the specified length. If no input is given, the function should still generate the password as described.
  assert generate_password()==generate_password()
  password = generate_password()
  print(password)
output: import random
  import string
  
  def generate_password():
      characters = string.ascii_letters + string.digits
      return ''.join(random.choice(characters) for _ in range(8))