input: def caesar_encrypt(message: str, shift: int) -> str:
      """Encrypts a message using a Caesar cipher with the given shift.
      >>> caesar_encrypt("hello", 3)
      'khoor'
      >>> caesar_encrypt("python", 7)
      'wfa{uvu'
      """
output:     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'))
              encrypted_message += new_char
          else:
              encrypted_message += char
      return encrypted_message