input: import hashlib
  
  def encrypt(message: str, key: str) -> str:
      """Encrypts a given message using the first character of the key.
      The encrypted message is created by shifting each character in the message by the ASCII value of the first character of the key.
      >>> encrypt("Hello world!", "secret")
      'Tqxx{ y{|{{!'
      """
      encrypted_msg = ""
      for char in message:
          encrypted_msg += chr(ord(char) + ord(key[0]))
      return encrypted_msg
output:     encrypted_msg = ""
      for char in message:
          encrypted_msg += chr(ord(char) + ord(key[0]))
      return encrypted_msg