input: Write a python function to encrypt a message using a key.
  assert encrypt("hello", "k") == ''
  assert encrypt("world", "a") == '×'
  assert encrypt("test", "b") == 'Û'
output: def encrypt(message, key):
      encrypted_message = ''.join(chr(ord(char) ^ ord(key)) for char in message)
      return encrypted_message