input: Write a function to encrypt a message using a Caesar cipher with a given shift value. The Caesar cipher shifts each character in the message by the specified number of positions in the ASCII table. If the shifted character goes past the printable ASCII range (32-126), it should wrap around within this range. The function should return the encrypted message.
  def caesar_encrypt(message, shift):
      encrypted_message = ""
      for c in message:
          encrypted_c = ord(c) + shift
          if encrypted_c > 126:
              encrypted_c -= 94
          encrypted_message += chr(encrypted_c)
      return encrypted_message
  assert caesar_encrypt("Hello, World!", 3) == "Khoor/#Zruog#"
  assert caesar_encrypt("abcdef", 5) == "fghijk"
  assert caesar_encrypt("special!", 10) == "}_uy}pu%"
output: def caesar_encrypt(message, shift):
      encrypted_message = ""
      for c in message:
          encrypted_c = ord(c) + shift
          if encrypted_c > 126:
              encrypted_c -= 95
          encrypted_message += chr(encrypted_c)
      return encrypted_message