input: Write a function to encrypt a message using a Caesar cipher. The function should take a message and a shift value as input, and return the encrypted message.
  assert caesar_encrypt("hello", 3) == "khoor"
  assert caesar_encrypt("world!", 5) == "|tw|i&"
  assert caesar_encrypt("testing", 1) == "uftujoh"
  assert caesar_encrypt("Python", 0) == "Python"
  assert caesar_encrypt("987654321", 10) == ":-98;<=>?"
output: def caesar_encrypt(message, shift):
      encrypted_message = ""
      for char in message:
          if char.isalpha():
              shift_amount = shift % 26
              if char.islower():
                  new_char = chr((ord(char) - ord('a') + shift_amount) % 26 + ord('a'))
              else:
                  new_char = chr((ord(char) - ord('A') + shift_amount) % 26 + ord('A'))
          else:
              new_char = chr((ord(char) + shift) % 128)
          encrypted_message += new_char
      return encrypted_message