input: Write a function to generate a random password consisting of 8 characters, which can be a mix of numbers, letters, and special characters. Print the generated password.
  assert generate_password()!='12345678'
  assert generate_password()!='abcdefgh'
  assert generate_password()!='!@#$%^&*'
  assert generate_password().isalnum()==False
  assert len(generate_password())==8
output: import random
  import string
  
  def generate_password():
      characters = string.ascii_letters + string.digits + string.punctuation
      password = ''.join(random.choice(characters) for _ in range(8))
      return password