input: 
  def caesar_encrypt(message: str, shift: int) -> str:
      """Encrypts a message using a Caesar cipher with the given shift.
      >>> caesar_encrypt("Hello, World!", 3)
      'Khoor/#Zruog$'
      >>> caesar_encrypt("abcXYZ", 2)
      'cdeZAB'
      """
      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
  
output:     encrypted_message = ""
      for c in message:
          if c.isalpha():
              base = ord('A') if c.isupper() else ord('a')
              encrypted_c = chr((ord(c) - base + shift) % 26 + base)
          else:
              encrypted_c = c
          encrypted_message += encrypted_c
      return encrypted_message