input: def caesar_encrypt(message: str, shift: int) -> str:
      """Encrypts a message using a Caesar cipher with the given shift.
      Only characters in the ASCII range 32-126 are allowed.
      >>> caesar_encrypt("Hello, World!", 3)
      'Khoor/#Zruog$'
      >>> caesar_encrypt("Python is cool!", 7)
      '^ubdv}96@pstc"'
      """
output:     encrypted_message = ""
      for char in message:
          if 32 <= ord(char) <= 126:
              new_char = chr((ord(char) - 32 + shift) % 95 + 32)
              encrypted_message += new_char
          else:
              encrypted_message += char
      return encrypted_message