input: Write a function that encrypts a message using a Caesar cipher by shifting each character by a given number of positions. The function should wrap around if a shifted character exceeds the ASCII value of 126. If the message is empty, the function should return an empty string.
  
  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("Python", 5) == "]%msk~"
  assert caesar_encrypt("123", 1) == "234"
  assert caesar_encrypt("ABC", 0) == "ABC"
  assert caesar_encrypt("", 5) == ""
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