input: Write a Python program to generate a random password. The program should generate a string of 8 characters (numbers, letters, and special characters).
  
  def generate_password():
      password_characters = string.ascii_letters + string.digits + string.punctuation
      password = ''.join(random.choice(password_characters) for i in range(8))
      print(password)
  
  generate_password()
  
  assert generate_password()
  assert generate_password()
  assert generate_password()
  assert generate_password()
  assert generate_password()
output: def generate_password():
      import random
      import string
      password_characters = string.ascii_letters + string.digits + string.punctuation
      return ''.join(random.choice(password_characters) for i in range(8))