input: Write a function to encrypt a message using a Caesar cipher by shifting each character by a given number of positions in the ASCII table. If the shifted character exceeds the ASCII value of 126, it should wrap around to the beginning of the printable ASCII characters (from 32 to 126). 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", 3) == "khoor"
  assert caesar_encrypt("world", 5) == "|{\"uq"
  assert caesar_encrypt("test", 0) == "test"
  assert caesar_encrypt("!@#$%", 1) == "\"A#$%"
  assert caesar_encrypt("", 10) == ""
output: 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