input: def caesar_encrypt(message: str, shift: int) -> str:
      """ Encrypts a message using a Caesar cipher by shifting each character by a given number of positions.
      If shifting a character goes past the ASCII value for '~' (126), it wraps around to the beginning of the printable ASCII range.
      >>> caesar_encrypt("Hello, World!", 3)
      'Khoor/#Zruog$'
      >>> caesar_encrypt("abc", 1)
      'bcd'
      """
output:     encrypted_message = []
      for char in message:
          if 32 <= ord(char) <= 126:
              new_char = chr((ord(char) - 32 + shift) % 95 + 32)
              encrypted_message.append(new_char)
          else:
              encrypted_message.append(char)
      return ''.join(encrypted_message)