input: 
  def caesar_encrypt(message: str, shift: int) -> str:
      """Encrypts a message using a Caesar cipher with the given shift.
      The function shifts each character in the message by the specified
      amount, wrapping around when it goes past the ASCII code of '~'.
      
      >>> caesar_encrypt("Hello, World!", 3)
      'Khoor/#Zruog$'
      >>> caesar_encrypt("Python 3.9", 1)
      'Qzuipo 4:0'
      """
      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:
          encrypted_c = ord(c) + shift
          if encrypted_c > 126:
              encrypted_c -= 94
          encrypted_message += chr(encrypted_c)
      return encrypted_message